Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

To create user name with read only access

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-05-2010
rsivasan rsivasan is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 20 March 2013, 6:25 AM EDT
Posts: 45
Thanks: 4
Thanked 0 Times in 0 Posts
To create user name with read only access

hi,

how to create user name with read only access.

i think first need to create group with read only access after that i need to create the user and assign it to that group. If it is correct, how to create user with read only access?
Sponsored Links
    #2  
Old Unix and Linux 07-05-2010
learnbash learnbash is offline
Banned
 
Join Date: Mar 2008
Last Activity: 28 July 2014, 4:29 PM EDT
Posts: 364
Thanks: 31
Thanked 3 Times in 3 Posts
post more detail, you want him to restrict his own directory? or some other application?
Sponsored Links
    #3  
Old Unix and Linux 07-05-2010
rsivasan rsivasan is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 20 March 2013, 6:25 AM EDT
Posts: 45
Thanks: 4
Thanked 0 Times in 0 Posts
Hi,

I want a user to be created with read only access for all the directories
    #4  
Old Unix and Linux 07-05-2010
funksen funksen is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 15 January 2016, 6:36 AM EST
Location: Austria/Vienna
Posts: 682
Thanks: 25
Thanked 31 Times in 30 Posts
there are no "read only" groups

there are files/folders that have read only permission for a group
if a group has no write access to any file on a system, you may call it read only group, but there's still the /tmp folder, where everyone has write rights


normally a new created user just has write rights to his home directory
if you change the home directory of the user to something like
chmod 555 /home/user , the user should be a read only user for the most directories on your system

but any time you change a directory to 777 for example, the user will be able to write to that directory, so be careful

perhaps you want to have a look at:

UNIX permissions
Sponsored Links
    #5  
Old Unix and Linux 07-05-2010
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 8 June 2016, 9:58 PM EDT
Posts: 6,402
Thanks: 288
Thanked 676 Times in 645 Posts
A near match to the requirement is to create the user in a unique group with notbody else in that group and also give them a Restricted Shell (rsh, rksh or whatever is appropriate for your environment).
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
create user with RWX access to a specific directory in Solaris 10 gsander Solaris 5 08-06-2009 12:36 PM
user & group read/write access question Katkota UNIX for Dummies Questions & Answers 3 08-28-2008 09:30 PM
How to create a new ftp user account with limited access..? Jeremy3 Solaris 6 09-01-2006 05:52 AM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 12:18 PM
create or modify user account to have same access as root xadamz23 UNIX for Dummies Questions & Answers 6 08-07-2003 07:59 PM



All times are GMT -4. The time now is 09:46 AM.