- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem adding user via 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
12-17-2003 08:11 AM
12-17-2003 08:11 AM
Problem adding user via SAM
The user is added to the system and is placed in the correct group, but I don't know why I'm getting this error message.
Server=rp7410
OS=HP-UX 11.11
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 08:16 AM
12-17-2003 08:16 AM
Re: Problem adding user via SAM
try to cp /etc/group to /etc/group.old, then modify /etc/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 08:17 AM
12-17-2003 08:17 AM
Re: Problem adding user via SAM
If the group already exsisted there is no need to alter the /etc/group file. If so you now have an number in the homedir in stead of a name. You can try using vi to edit the group file.
Check the SAM log for more errors, you can use lsof ( if installed) to see witch process has the group file open.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 08:21 AM
12-17-2003 08:21 AM
Re: Problem adding user via SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 08:33 AM
12-17-2003 08:33 AM
Re: Problem adding user via SAM
Also, I have a script that I use to add users to all my 11 boxes or a combo thereof... I will offer it freely for your modification...
I like to keep all my boxes in sync with the passwd files...
via remsh...
useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c "${3}" $1
remsh HOSTNAME2 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh HOSTNAME3 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh HOSTNAME4 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh hostNAME1 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh hostNAME2 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh hostNAME3 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh hostNAME4 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh hostNAME5 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh hostNAME6 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
remsh HOSTname1 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"
for name in hostNAME6 hostNAME5 hostNAME4 hostNAME3 hostNAME2 hostNAME1 HOSTNAME2 HOSTNAME3 HOSTNAME4 HOSTname1
do
echo $name
remsh $name tail -1 /etc/passwd
done
uname -n
tail -1 /etc/passwd
while true
do
echo "Which system do you want a login on?"
echo "1) hostNAME6 "
echo "2) hostNAME5 "
echo "3) hostNAME4 "
echo "4) hostNAME3 "
echo "5) hostNAME2 "
echo "6) hostNAME1 "
echo "7) HOSTNAME4 "
echo "8) HOSTNAME3 "
echo "9) HOSTNAME2 "
echo "10) HOSTNAME1 "
echo "11) HOSTname1 "
echo "12) exit"
read system_id
case $system_id in
1) remsh hostNAME6 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;
2) remsh hostNAME5 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;
3) remsh hostNAME4 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;
4) remsh hostNAME3 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;
5) remsh hostNAME2 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;
6) remsh hostNAME1 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;
7) remsh HOSTNAME4 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;
8) remsh HOSTNAME3 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;
9) remsh HOSTNAME2 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;
10) remsh HOSTNAME1 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;
11) remsh HOSTname1 "sed 's/${1}:\*/${1}:/' /etc/passwd > /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;
12) exit 1
esac
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 08:58 AM
12-17-2003 08:58 AM
Re: Problem adding user via SAM
If your /etc/group has permission 444, then
owner,group and other has read permission only, not allow to modify that file. Changed the permission to 744.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 09:01 AM
12-17-2003 09:01 AM
Re: Problem adding user via SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 09:04 AM
12-17-2003 09:04 AM
Re: Problem adding user via SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 09:06 AM
12-17-2003 09:06 AM
Re: Problem adding user via SAM
/etc/passwd 444 root sys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 01:50 PM
12-17-2003 01:50 PM
Re: Problem adding user via SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 02:02 PM
12-17-2003 02:02 PM
Re: Problem adding user via SAM
-Hazem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 02:15 PM
12-17-2003 02:15 PM
Re: Problem adding user via SAM
#pwck
#grpck
to check the group and password files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 02:26 PM
12-17-2003 02:26 PM
Re: Problem adding user via SAM
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 07:14 AM
12-18-2003 07:14 AM