LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Rhel user permission. (https://www.linuxquestions.org/questions/linux-newbie-8/rhel-user-permission-4175474852/)

a.abdulna 08-27-2013 04:46 AM

Rhel user permission.
 
Dear All,

Am really happy with Linuxquestions.org coz i got lots of solutions and when i was started with this team am a new in Linux, now getting lots of things from Linuxquestion.org.

I have a requirement now, please help me..

How to configure Linux user with his home directory only read permission, we are giving this user to client for some other purpose.

Regards,
Abdul.

shivaa 08-27-2013 05:07 AM

Do you mean that only user itself should have read persmission on his home directory, and no one else? After creation of user, you can do it as:
Code:

~$ chmod u+rwx,og-rwx /home/username
OR
~$ chmod 700 /home/username

Or explain your requirement little more.

a.abdulna 08-27-2013 05:16 AM

Thank you shivaa,

that only user its fine done it.

bpn4it 08-27-2013 05:26 AM

give only read permission
 
hey if you want to give only read permission for user then the command is:

#chmod 500 /home/username

AbidDhanaiser 08-27-2013 06:55 AM

hi you can also use commadn
# chmod u+wrx /home username


All times are GMT -5. The time now is 12:51 AM.