Changing permissions of a folder
Hi all,
I've compiled my own code as root (long story why) anyway I now need to switch this to a normal user to compile. So I did a simple copy/paste (using gnome/debian lenny) to my home/user. I then logged in as used to see the folders with a padlock and permissions for root only. So I logged back in as root, change permissions to the used, check they were all ok, logged back in as user, and it still says owner root, even thought when I log in as root it shows user as owner :confused: Can anyone advise. Thanks. |
try
Code:
chown user:user file Code:
chown -R user:user directory |
Hi I've discovered I have to close my system down to change permission.
However I've found it it changes folders, but not files :s Is there a way I can change all the files at the same time, when I enter permissions I've clicked sub folders, it's code so there's an awful lot of files folders. Also on the drop down permissions it has many options, what do I select for all users . Thanks |
You can use
Code:
chmod -R user:user folder See man chmod You don't need to login logout as root, just login as user, open a terminal and type Code:
su |
Quote:
Code:
cannabis:/home/repo# mkdir test |
Thanks after some totally locking myself out of folders I got it to work :)
|
All times are GMT -5. The time now is 12:27 AM. |