- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- useradd problem in sam
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
08-26-2002 12:09 AM
08-26-2002 12:09 AM
useradd problem in sam
Back after a 4 day vacation. I was trying to add an user account to a hpux10.2 box through sam.
I got a strange error as
Failed to add user "temp1". There was an unknown error in "usr/sam/lbin/useradd.sam". The output from this command was: Permission Denied.
I am sure it was working fine before I left for the vacation. I thought someone would have done something nasty. I checked up the permissions.
#ll -d /usr/sam/lbin/useradd.sam
lrwxr-xr-x 1 root sys 17 Mar 1 2000 /usr/sam/lbin/useradd.sam -> /usr/sbin/useradd
#ll -d /usr/sbin/useradd
-r-xr-xr-x 1 bin bin 53248 Jan 7 1999 /usr/sbin/useradd
I think those are fine w.r.t permissions.
Am I missing something somewhere. Pointers and advices are greatly welcome
cheers
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 12:21 AM
08-26-2002 12:21 AM
Re: useradd problem in sam
Try this.
chown root:sys /usr/sbin/useradd
and try sam again.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 12:28 AM
08-26-2002 12:28 AM
Re: useradd problem in sam
# /usr/sbin/useradd temp1 rm: /etc/group.tmp13650 not removed. Permission denied
I got the above error. I am not understanding what was happening behind the scenes.
cheers
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 12:39 AM
08-26-2002 12:39 AM
Re: useradd problem in sam
/var/adm/sam
for any messages.
Also check your syslog.log file at /var/adm/syslog.
Revert
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 12:46 AM
08-26-2002 12:46 AM
Re: useradd problem in sam
e.g.
# useradd -u 1150 -g users -d /home/testuser -s /usr/bin/ksh -c "test" -m testuser
You may need to set up the symbolic link again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 12:56 AM
08-26-2002 12:56 AM
Re: useradd problem in sam
try renaming this file /etc/group.tmp13650
to something else. eg. test.u
#mv /etc/group.tmp13650 /etc/test.u
Also.
#cd /etc
#ls group.tmp*
how many such files exist?
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 01:02 AM
08-26-2002 01:02 AM
Re: useradd problem in sam
When I tried use sam to see the disk devices. I got the following error.
Sorry you must have superuser (root) privilege to access/enter this area of SAM.
I ran sam as root only. I think somewhere the permissions for sam are tweaked out.
# ll -d `which sam`
-rwxr-xr-x 1 bin bin 7219 Jun 7 1996 /usr/sbin/sam
any points on this
cheers
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 01:06 AM
08-26-2002 01:06 AM
Re: useradd problem in sam
when I tried your script
# useradd -u 1150 -g users -d /home/testuser -s /usr/bin/ksh -c "test" -m testuser rm: /etc/group.tmp18660 not removed. Permission denied mkdir: cannot access /home: Permission denied Cannot create home directory
# ll -d /home drwxr-xr-x 27 root root 1024 Aug 12 17:45 /home
# id uid=0(root) gid=3(sys) groups=0(root),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users),102(mqm)
# groups root bin sys adm daemon mail lp users mqm
any clues
cheers
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 01:11 AM
08-26-2002 01:11 AM