Results 1 to 5 of 5
how can i change the permissions to a folder? since you never log in as root, and im logged in as my user, it wont let me change the permissions ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-16-2005 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 6
folder permissions
how can i change the permissions to a folder? since you never log in as root, and im logged in as my user, it wont let me change the permissions to a folder.
- 07-16-2005 #2
Well, if it's a root-controlled folder, then you simply, from a terminal, do:
"su" switches you to another user. The default is root.Code:su <<Enter the root Password>> chmod <<PERMISSIONS>> FOLDER_NAME
- 07-16-2005 #3Just Joined!
- Join Date
- Jun 2005
- Posts
- 6
thats what i did but it didnt work. how do you enter the folder name?
- 07-17-2005 #4
I don't quite understand...
You enter the folder name exactly as it's spelled, only you change every space to "\ " (that's a backslash, then a space).
- 07-18-2005 #5Just Joined!
- Join Date
- May 2005
- Posts
- 52
Originally Posted by meander
su
<<Enter the root Password>>
chmod <<PERMISSIONS>> FOLDER_NAME
i.e. :
chmod 755 \mydirectory
if you want to change the directory perms and all thats in it try:
chmod -R 755 \mydirectory
(755 = For files that should be readable and executable by others, but only changeable by the issuing user)
Make sure you understand what perms you are giving when you do chmod. check here ->
http://www.linuxforums.org/tutorials...ial-21490.html
and here ->
http://www.tldp.org/LDP/intro-linux/...ect_03_04.html
if you want to change the owner try:
chown -R username:groupname \mydirectory
(i.e.)
chown -R meander:meander \mydirectory


Reply With Quote
