How to change permission of home folder 's directory ?
Juan R. de Silva
juan.r.d.silva at gmail.com
Thu Jun 30 00:33:09 UTC 2011
On Wed, 29 Jun 2011 13:24:39 -0400, amritpal pathak wrote:
First, you can do it using GUI method. It's good enough if you want to
change permissions on one directory. In Nautilus right click on desired
directory and select Properties from a menu. Then click on Permissions
tab and set the desired permissions.
If you want to do it from the command line, and you need to change
permissions on one directory only, open terminal and execute
`chmod -v permission_type directory_name`
In case the directory in question has sub directories and you want new
permissions to be applied to all of them, execute in terminal
`find /home/user_name/desired_directory -type d | while read var1; do
chmod -v permission_type "$var1"; done`
You can also set some desired permissions to all files inside of the
directories in question by executing then
`find /home/user_name/desired_directory -type f | while read var1; do
chmod -v permission_type "$var1"; done`
About permissions type read `man chmod`.
More information about the ubuntu-users
mailing list