The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > 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 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

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 12-13-2006
qfwfq qfwfq is offline
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
  #2 (permalink)  
Old 12-17-2006
jestinabel jestinabel is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 22
make template in sam, and use the purticular template to create similer user permission.
  #3 (permalink)  
Old 01-12-2007
pmoren pmoren is offline
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.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:27 PM.


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