Apple Xserve Up Mac OS X Server Specifications Page 130

  • Download
  • Add to my manuals
  • Print
  • Page
    / 329
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 129
130 Chapter 8 Managing User and Group Accounts
Changing Permissions
To change permissions for an item, use the chmod tool.
$ chmod
securitygroup
changetype permission fileorfolder
To remove the write access permission for group and other from the file myfile:
$ chmod go-w myfile
To add read and write access permissions for group and other to files myfile1 and
myfile2:
$ chmod go+rw myfile1 myfile2
To add read, write, and execute permissions for all to myfile1:
$ chmod ugo+rwx myfile1
For more information, see the chmod man page.
Changing the Owner
To change the owner of a file or folder, use the chown tool.
$ chown
username
fileorfolder
To change the owner of file1 to the user jdoe:
$ chown jdoe file1
For more information, see the chown man page.
Parameter Description
securitygroup
The person or group whose permission you are changing. Can be
the following:
 u—user
 g—group
 o—other
 all—all
changetype
Type of change. To add or subtract the permission, use:
 “+” —add permission
 “-”—subtract permission
permission
The permission you are changing:
 r—read
 w—write
 x—execute
fileorfolder
The name of the file or folder to change.
Parameter Description
username
The user who will become the owner of the file.
fileorfolder
The name of the file or folder to change.
Page view 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 328 329

Comments to this Manuals

No comments