LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File permission to specific user ! (https://www.linuxquestions.org/questions/linux-newbie-8/file-permission-to-specific-user-856056/)

noony123 01-13-2011 06:36 AM

File permission to specific user !
 
Hi all,

i have created a file (by root user) called test.txt. Then i created a user bob. Now i want only bob to read/write/execute this file and no other user shall have any permission on it.

How can i do it ?

sycamorex 01-13-2011 06:42 AM

First you need to change the owner of the file to bob and then grant read/write/execute permissions only to the user (bob).
Have a look at the following article:
http://www.comptechdoc.org/os/linux/..._ugfilesp.html

grail 01-13-2011 06:42 AM

Have a look at chown and chmod.

noony123 01-13-2011 08:11 AM

Thanks a lot guys :-)


All times are GMT -5. The time now is 08:12 PM.