To create user name with read only access | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

To create user name with read only access

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 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 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 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 07-05-2010
funksen funksen is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 30 April 2014, 10:11 AM EDT
Location: Austria/Vienna
Posts: 675
Thanks: 21
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 07-05-2010
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 672 Times in 642 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:35 AM.