NCSA Home
Contact Us | Intranet | Search

Permissions, groups and ownership


How do I change permisions on a file in UniTree?

    The unix chmod command works in UniTree. The only difference is octal numbers must be used instead of of letters. For example, to give group and world read permission to a file you already have read and write permissions to, use the command
    ftp> quote site CHMOD 644  filename 
    
    [The command "quote site CHMOD gw+r filename" does NOT work.]

I always want files to be stored in UniTree with certain permissions - how can I do this?

    Create a file called ".msscmdrc" in your home directory on an NCSA production machine. The contents of this file should be the appropriate umask command you wish to execute prior to each save. See the umask man page for more details.

    Note that the file .msscmdrc is read upon every invocation of msscmd (not mssftp) and the commands in this file are executed prior to any commands you issue after msscmd.

Is there a wildcard for chmod within ftp?

    Before Dec. 2008, there was no wildcard for chmod and chgrp within ftp.
    After Dec. 2008, wildcards are supported for these commands.

How can I create a UniTree group?

    Send a mail message to unitree@ncsa.uiuc.edu with the name of the group and the logins you would like to belong to that group.

How can I change the group associated with a file?

    The UniTree command
    ftp> quote site CHGRP  groupname filename 
    
    changes the group associated with a file.

    There is a bug in UniTree that returns the error message "Permission Denied" in the event you try to get a file from tape archive that does not belong to your default group. However, the file will still be moved to disk. Issuing a subsequent get will bring the file to your local disk without any difficulties.

    Also, files inherit the group permissions of the directory in which they are initially stored. (check this.)

How can I change ownership of files in UniTree?

    For academic users, the file owner needs to send e-mail to unitree@ncsa.uiuc.edu authorizing the change of ownership. They should include their current login, the name and login of the new owner, and the names of files and/or directories for which ownership should be transferred.