- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SAM user and my user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 08:35 PM
05-25-2004 08:35 PM
SAM user and my user
I had one small doubt. How can I find out what are the different settings associated with a SAM defined user and a user created by me with the help of a script? Through my script I make entries of the user in /etc/group file and /etc/passwd file. Based on entries in these files I give different permission to different users.
Please let me know if anyone has any info.
Regards,
Pankaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 08:44 PM
05-25-2004 08:44 PM
Re: SAM user and my user
Is your own script based on the useradd command.
Check the man page for this command.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 09:50 PM
05-25-2004 09:50 PM
Re: SAM user and my user
As far as I know, SAM creates users as follows:
1. Basics: It checks all possible duplications, creates the user by useradd, using the parameters, which you defined and run ypmake, if there is NIS-master on the computer.
2. Some addins:
One can use user's templates, previously created.
There is very good feature, which permits to run a script after adding or deleting of a user.
Actually you can do this in your script, the decision is yours.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 10:41 PM
05-25-2004 10:41 PM
Re: SAM user and my user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 12:59 AM
05-26-2004 12:59 AM
Re: SAM user and my user
Also you may want to have a look at useradd -D output. These are the default values used when adding a user. You cal also put these values in /etc/default/useradd file.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 10:33 PM
06-09-2004 10:33 PM
Re: SAM user and my user
I just lost tract of this.
Continuing with the same.......
My script uses the following commands to create a user:
useradd -u and
/usr/sam/lbin/usermod.sam
whereas SAM uses upusrfiles -r
So can there be any difference in the shell variables/ unix related parameters which can be different in both the cases?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 06:05 AM
06-10-2004 06:05 AM
Re: SAM user and my user
/usr/lbin/getprpw user1
and
/usr/lbin/getprpw user2
and look for differences. I would not expect that you will find any.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 08:46 PM
06-10-2004 08:46 PM
Re: SAM user and my user
getprpw command is not working as it says," System is not trusted". Any other method of comparison????
Thanx and Regards,
Pankaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 01:32 AM
06-11-2004 01:32 AM
Re: SAM user and my user
I am not sure of the purpose that you look for when establishing differences, but this perhaps can help you.
Any activity about the utility SAM is registered in / var/sam/log/samlog, in the manual way is not it. For this, when sam add teh user "pankaj", this log must reflect something like:
samlog:Adding user pankaj.
samlog:Executing the following command:\C/usr/sam/lbin/upusrfiles -r pankaj\C
samlog:upusrfiles: Creating home directory "/home/pankaj".
samlog: /etc/skel/.cshrc /home/pankaj/.cshrc 2>/dev/null\C
samlog: /etc/skel/.exrc /home/pankaj/.exrc 2>/dev/null\C
samlog: /etc/skel/.login /home/pankaj/.login 2>/dev/null\C
samlog: /etc/skel/.profile /home/pankaj/.profile 2>/dev/null\C
samlog:Successfully added user pankaj.
If you want, for any reason, set a specific difference at the moment to create an user by use of the command "useradd", you would do:
To create a customized log that registers this event,
To add a comment, option -c of the command "usseradd." i.e:
#useradd -u 999 -g your_group -d /home/pankaj -m -s /usr/bin/sh -c your_comment pankaj
I hope that be usefull for you.
Rgds.