The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

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 08:13 AM
Home Directory Jail for Users mz043 UNIX for Dummies Questions & Answers 3 04-18-2007 10:14 AM
How best to extract the users home from /etc/password spaceship Shell Programming and Scripting 4 03-30-2006 04:39 AM
HACMP users home directories zz2kzq AIX 1 02-21-2006 12:22 PM
Profiles for users without home directory naina UNIX for Dummies Questions & Answers 3 02-05-2006 01:41 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-13-2006
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 133
Home dir for users

Hello all,

Most of our users have the same home directory, I know it’s weird but it has been like this before me and we don't want to change that for now. When creating a new user using command useradd, it is not allowing me to create it because it is using the home directory of someone else. I do use this command under a script :

Code:
 /usr/sbin/useradd -g $GRO -d $HDIR -s /usr/bin/ksh -c "$FISRTNAME $NAME" $USE
Variables works fine...actually if I chose another home dir it is working fine. Just when 2 users have the same home dir. I know that you can go under SAM and change it, but still if you do that, the home dir will become own by the new user... I don't want that. So the other option is vipw the password file and change it manually... you also understand that I don't want that too. I thought about using sed to make the change in the password file using the script...but hummm ..no so sure if it is a good thing to do... any idea?

HP-UX 11.23
Reply With Quote
Forum Sponsor
  #2  
Old 12-17-2006
Registered User
 

Join Date: Dec 2006
Posts: 22
make template in sam, and use the purticular template to create similer user permission.
Reply With Quote
  #3  
Old 01-12-2007
Registered User
 

Join Date: Dec 2006
Posts: 32
I think you only have to change the permission of the home users directory, so every one can access to it. You can do it by the command chmod 777.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0