The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can't create users in /home sdspawankumar SUN Solaris 4 2 Weeks Ago 08:13 AM
Home Directory Jail for Users mz043 UNIX for Dummies Questions & Answers 3 04-18-2007 10:14 AM
Home dir for users qfwfq HP-UX 2 01-12-2007 10:18 AM
Monitor which users enter my home directory mnpradeep High Level Programming 1 03-21-2002 01:08 AM
Restrict users to ther home directory alfabetman UNIX for Dummies Questions & Answers 1 10-04-2001 11:31 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2006
Registered User
 

Join Date: Dec 2005
Posts: 6
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-01-2006
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 131
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 12:34 PM.
Reply With Quote
  #3 (permalink)  
Old 02-03-2006
Registered User
 

Join Date: Dec 2005
Posts: 6
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)
Reply With Quote
  #4 (permalink)  
Old 02-05-2006
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 627
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!
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0