![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 12:13 PM |
| Home Directory Jail for Users | mz043 | UNIX for Dummies Questions & Answers | 3 | 04-18-2007 02:14 PM |
| How best to extract the users home from /etc/password | spaceship | Shell Programming and Scripting | 4 | 03-30-2006 08:39 AM |
| HACMP users home directories | zz2kzq | AIX | 1 | 02-21-2006 03:22 PM |
| Profiles for users without home directory | naina | UNIX for Dummies Questions & Answers | 3 | 02-05-2006 04:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|