Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Well, if it's a root-controlled folder, then you simply, from a terminal, do:

    Code:
    su
    <<Enter the root Password>>
    chmod <<PERMISSIONS>> FOLDER_NAME
    "su" switches you to another user. The default is root.

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Posts
    6
    thats what i did but it didnt work. how do you enter the folder name?

  4. #4
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    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).

  5. #5
    Just Joined!
    Join Date
    May 2005
    Posts
    52
    Quote Originally Posted by meander
    thats what i did but it didnt work. how do you enter the folder name?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •