Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Give right

  1. #1

    Default Give right

    how do I give rights to get inside my folders in file system.

    I see some folders that have a red x or dot meaning I dont have permission.

    What commnad do I need to type

  2. #2
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Give right

    chmod +x /path/to/folder

    or

    chmod 755 /path/to/folder

    be careful on which folders you change permissions as some programs may complain and refuse to start if they detect a wrong folders permission

    PS: in Linux/UNIX we use directory as terminology and not folder which is a Windowish thing

  3. #3

    Default Re: Give right

    Im trying to get into rddb directory to work with a freshly installed FreeRadius. I want to have all rights.

    I'm guess the +x gives only read? X meaning read? What other characters do I need beside the x to give me full access

  4. #4
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Give right

    Quote Originally Posted by redcoat View Post
    Im trying to get into rddb directory to work with a freshly installed FreeRadius. I want to have all rights.

    I'm guess the +x gives only read? X meaning read? What other characters do I need beside the x to give me full access
    +x on directories gives access permissions for all users. On files it gives them executable permissions for all users, hence the 'x'. If you put a - sign before it, it removes them, eg -x will remove access/executable permissions on directories/files respectively

    also what do you mean by full access? For all users or just you? if just you, +x or 755 should be enough. For all users (which includes you), use 777 which will give read/write/enter access no matter who's trying to access the directory

  5. #5
    Join Date
    Jun 2008
    Location
    Charleston, SC, USA
    Posts
    192

    Default Re: Give right

    By full access, do you mean read, write, and execute?

    I suggest you read this to learn about file permissions.

    To more directly answer your question, +x adds the execute permissions to the file or directory.

    I prefer to use the numeric method, as I get confused with letters.

    Code:
    chmod 755 /path/to/folder
    That should assign all of the permissions you should need.

    Edit: microchip, you beat me to the punch.
    My personal philosophy:
    The only way you won't find something is if you stop looking.

  6. #6

    Default Re: Give right

    ok the 755 got me in but all the files and directories under it still have red x's

  7. #7
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Give right

    Quote Originally Posted by redcoat View Post
    ok the 755 got me in but all the files and directories under it still have red x's
    use chmod -R 755 /path/to/directory

    -R means recursive changes

  8. #8

    Default Re: Give right

    chmod -R 755 is slightly inappropriate, in that it gives execute permissions to things that don't need it, and hence could confuse people new to Linux trying to make sense of permissions.

    chmod -R u+rX (note the upper case X) would give read permissions to the user's files and directories, and would add execute permissions to any directories below the top-level one, but would not do so for files.

  9. #9

    Default Re: Give right

    I just tried to drag/copy a file to the raddb directory but it didnt work it told me permission denied

  10. #10

    Default Re: Give right

    Quote Originally Posted by redcoat View Post
    I just tried to drag/copy a file to the raddb directory but it didnt work it told me permission denied
    Well, we're not mind readers on here, so you need to give us some more information.

    Open up a terminal, change to the directory *above* raddb and do 'ls -l' so we can find out what the permissions of your directory are.

    I'm guessing you don't have write permission, so change to the directory above raddb and type 'chmod u+w raddb' and try copying across again.

    This still might not work, so it's important you do the first step of listing the permissions.

Page 1 of 2 12 LastLast

Posting Permissions

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