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

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 :wink:

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

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.

chmod 755 /path/to/folder

That should assign all of the permissions you should need.

Edit: microchip, you beat me to the punch. :stuck_out_tongue:

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

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.

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.

drwxrwxr-x 7 root radiusd

the above post is what I got when I did ls -l for the raddb directory

OK, I can see that the permissions for others do not include write permission. The listing tells me that the owner is “root” and the group is “radiusd” - so you are not allowed to write because you are not root OR because you are not in the group radiusd.

Use YaST to add yourself to the group “radiusd”. You may have to logout and login again for the change to take effect.

You could change the permissions using chmod o+w to give others write permission, but I think you’ll only encounter more problems. Adding yourself to the radiusd group looks like the right thing to do.

(I have no idea what radius is!)

It has to do with FreeRadius. It allows you to authenticate people onto a network. A lot of people use it for wireless authentication.