Operating System - Linux
1832666 Members
3185 Online
110043 Solutions
New Discussion

Re: release the permission to the directory

 
SOLVED
Go to solution
peterchu
Super Advisor

release the permission to the directory

I want to release the permission ( read / write ) to a directory , all other users can only read to this directory , could suggest what can I do ? thx.
3 REPLIES 3
Fred Ruffet
Honored Contributor
Solution

Re: release the permission to the directory

let's say rwuser is user who must read/write this dir :
chown rwuser /your/dir
chmod 755 /your/dir

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
peterchu
Super Advisor

Re: release the permission to the directory

thx reply , is there any good way to control the file / directory permission , as i know , there is a command can use to set the permission of file /directory ? thx
Fred Ruffet
Honored Contributor

Re: release the permission to the directory

ls -l filename will show you permissions in a rwxrwxrwx format. For a directory, use "ls -ld" (if you don't use d option you will have directory content listed).

chmod is for changing rights.

Basic info on rights :
. first rwx part is for file/dir owner
. second one is for file/dir group
. third one is for others
. for files, r means read, w write and x execute.
. for dirs, r means read file list, w mean create/modify/delete files and x means you can mention this dir in PATH or position your session in it

This is real basic infos. I will not explain rights here (may be a little long) and I advice you to read docs on these things ("man chmod" may be a good start point).

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)