1846472 Members
4839 Online
110256 Solutions
New Discussion

Re: SAM

 
Jeffrey F. Goldsmith
Super Advisor

SAM

The server I am currently working with has HP-UX 10.20. I am setting up an L2000 server, which has HP-UX 11.00. I started SAM and added all my users and created the groups. After I finished I went back to check my work and found something strange with my groups. The user names would only go out to 263 characters and then start wrapping around on top of themselves. I don't have this problem with 10.20. Is there a patch that I need to correct this problem?
Any help would be grateful.
6 REPLIES 6
Peggy Fong
Respected Contributor

Re: SAM

Hi
I believe this is known as an enhancement or feature and not a bug. It is my understanding that at 11.0 SAM was changed to only display the first 265 users. This was a performance enhancement - there were complaints on systems with thousands of users that it took much too long to display. I think you can still change users, etc. but you need to know the info from the password file. Last I knew there was no patch - but maybe someone else has more recent information (mine is about 3-4 months old :)

Regards,
Peg
Jeffrey F. Goldsmith
Super Advisor

Re: SAM

Hi Peg,
That would be fine except that it over writes the name of the group and I have several groups with more than 50 users in them. Also, I did a test and found that it had to do with the number of charaters not the number of names.
Patrick Wallek
Honored Contributor

Re: SAM

Jeff,

Have you installed any patches on the system? If not, the latest general release patch bundle would be a good place to start.

Also here is the latest SAM Cumulative patch for 11.0. If you don't have this you might give it a shot, although I didn't find anything in the patch text relateing to the problem that you have.

http://us-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=c43f5bb011478e6eba?PACH_NAM=PHCO_23876&HW=s800&OS=11.00
Bill Hassell
Honored Contributor

Re: SAM

The group file is almost unmanageable with super long lines. The easiest way to fix this is to break up the lines at about 70 characters. By using vi to insert a newline, group name, GID and colons, you can use the repeat character (the . command) to break up each long line very quickly. You can repeat the group name an unlimited number of times, even put the group name and one user ID on one line.

However, none of this is necessary EXCEPT for alternate groups. The primary group affiliation comes from the passwd file so for 10.20 and later, the group name must be defined but the members do not have to be listed.

In 10.20, you have to link the /etc/logingroup to /etc/group so alternate groups have automatic membership (ie, not have to use the newgrp command). At 11.0 and later, this is no longer necessary.


Bill Hassell, sysadmin
Jeffrey F. Goldsmith
Super Advisor

Re: SAM

Could this be part of my problem? I copyed this from my screen when I started SAM this morning.

root: /home/root ==> sam&
[1] 20536
root: /home/root ==> Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*" to type FontSet

Waiting to hear.
Manju Kampli
Trusted Contributor

Re: SAM

Jeff,
The above error is due to CDE and is not going to impact your sam group problem.. so don't get confused..

Coming to the matter of users and group.. I am not sure if you are aware.. in HP-UX 11.0 /etc/group file need not have the user name in front of the group if it is user's primary group. For example, if you have 50 users and all their primary group is "user".. and in group file, infront of "user" group ID you need not have to have all those 50 users name.. This is the modification done in HP-UX 11.0. The GID for these uses will be taken from the passwd file it has UID and GID info. If the user is part of more than one group, then the other groups in /etc/group file needs to have an entry of that user in front of them.

Hope this helps.
Manju
Never stop "LEARNING"