LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2013, 05:46 AM   #1
a.abdulna
Member
 
Registered: Feb 2013
Location: Bangalore
Distribution: Rhel
Posts: 86

Rep: Reputation: Disabled
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.
 
Old 08-27-2013, 06:07 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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.
 
Old 08-27-2013, 06:16 AM   #3
a.abdulna
Member
 
Registered: Feb 2013
Location: Bangalore
Distribution: Rhel
Posts: 86

Original Poster
Rep: Reputation: Disabled
Thank you shivaa,

that only user its fine done it.
 
Old 08-27-2013, 06:26 AM   #4
bpn4it
LQ Newbie
 
Registered: Mar 2011
Location: Ahmedabad
Distribution: Centos
Posts: 3

Rep: Reputation: 1
give only read permission

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

#chmod 500 /home/username
 
Old 08-27-2013, 07:55 AM   #5
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Rep: Reputation: Disabled
hi you can also use commadn
# chmod u+wrx /home username
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to give root permission to normal user in RHEL... cgopisla@gmail.com Linux - Newbie 4 11-08-2012 12:40 PM
changing home directory permission in user management after user created in suse(KDE) hamedhsn Linux - Security 4 04-06-2011 10:18 PM
Help with user permission level--give access to a user 2 use 500 servers svani Linux - Newbie 2 06-17-2010 09:57 PM
C user function to check whether a given user has access permission to a file iamjayanth Linux - Software 2 10-07-2009 08:16 AM
RHEL 5 Permission Issue? your_shadow03 Linux - Newbie 2 08-17-2008 02:05 AM


All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration