The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 08-21-2008 11:13 AM
Home Directory Jail for Users mz043 UNIX for Dummies Questions & Answers 3 04-18-2007 01:14 PM
Home dir for users qfwfq HP-UX 2 01-12-2007 02:18 PM
Monitor which users enter my home directory mnpradeep High Level Programming 1 03-21-2002 05:08 AM
Restrict users to ther home directory alfabetman UNIX for Dummies Questions & Answers 1 10-04-2001 02:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-01-2006
naina naina is offline
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
  #2 (permalink)  
Old 02-01-2006
qfwfq qfwfq is offline
Registered User
  
 

Join Date: Feb 2005
Location: Canada
Posts: 133
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..
  #3 (permalink)  
Old 02-03-2006
naina naina is offline
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)
  #4 (permalink)  
Old 02-05-2006
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
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!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0