Results 1 to 4 of 4
Thread: Setting permissions for Users
- 09-20-2010, 01:25 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 50
Setting permissions for Users
Setting permissions for Users
You may set the permissions for users using the chmod command.
chmod 666 -R /tmp
this sets a permission of 666 to the user for all files within the /tmp directory.
You may likewise change the ownership of directories/files using the chown command
chown rabbit:rabbit /tmp
------------------------------------------------------------------------------------
ComputerName:~# mkdir /tmp/testshare
ComputerName:~# chown -R user /tmp/testshare
ComputerName:~# chgrp -R users /tmp/testshare
ComputerName:~# chmod -R 700 /tmp/testshare
ComputerName:~# ls -la /tmp
drwx------ 2 user users 4096 Oct 30 10:10 testshare
----------------------------------------------------------------------------------------
- 09-20-2010, 01:26 PM #2
Member
- Join Date
- Sep 2010
- Posts
- 50
List quotas:
quota -u user_id
For example: quota -u user1
System response:
Disk quotas for user user1 (uid 501):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda6 992 50000 55000 71 10000 11000
If this does not respond similar to the above, then restart the computer: shutdown -r now
Man page: quota - display disk usage and limits
- 09-20-2010, 09:45 PM #3
Newbie
- Join Date
- Sep 2010
- Posts
- 2
i use: chown 755 filename.php in SSH
- 09-21-2010, 03:13 AM #4
WHC Administrator
- Join Date
- Dec 2007
- Posts
- 1,618



LinkBack URL
About LinkBacks




Reply With Quote





Bookmarks