Profiles for users without home directory | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Profiles for users without home directory

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-01-2006
naina naina is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 5 April 2007, 4:29 AM EDT
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Profiles for users without home directory

Hi

I want to know which profile will be called when a user without home directory is created.

When I created a user without home directory(by setting in /etc/default/useradd), the user is able to login directly into the main "/" folder but with only read permissions.

Thanks
naina
Sponsored Links
    #2  
Old 02-01-2006
qfwfq qfwfq is offline
Registered User
 
Join Date: Feb 2005
Last Activity: 12 February 2010, 2:54 PM EST
Location: Canada
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
There are 2 kind of profile file. The first one is the /etc/profile file that is common to all users. The second one is the /home/user/.profile file. That one is executed for that particular user. The home directory could be one of your choices. Let's say you decide that all users have the same home directory, let's say /home/users/, then you will have to modified the /etc/passwd file and also modify permissions on files too to suite your need. You will then edit /home/users/.profile file and fill it with your code.

Note: I don't suggest a common home directory for all users.

Last edited by qfwfq; 02-01-2006 at 04:34 PM..
Sponsored Links
    #3  
Old 02-03-2006
naina naina is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 5 April 2007, 4:29 AM EDT
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I don't want to create home directories for any of the users, actually I am creating users to access CVS(Version Control Tool) for which there is no need of home directory. So in this case when I created a User without home directory, still the user is able to login using the user-id provided for CVS (Only Read Permission)
    #4  
Old 02-05-2006
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 67 Times in 60 Posts
if you don't need the home directories --- just create the accounts with /tmp as the home directory ... that way your users cannot accidentally mess something up in / if there are files/directories that for some reason got the world-writable bit on ... good luck!
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
close ssh users to the home directory jeszi AIX 1 07-23-2011 01:18 PM
SSH lock users to the Home Directory getrue Red Hat 10 07-06-2011 08:51 AM
Common Home directory for different users?? Luky Solaris 2 12-14-2009 12:47 PM
lost /home/directory for users blizzgamer UNIX for Dummies Questions & Answers 5 01-27-2009 07:45 PM
Home Directory Jail for Users mz043 UNIX for Dummies Questions & Answers 3 04-18-2007 02:14 PM



All times are GMT -4. The time now is 10:12 AM.