Wednesday, August 10, 2011

Unix/Linux user account related information

Posted on 9:39 AM by Kalum Umesh

Most of the Unix/Linux systems have similar commands and files to modify user and group related information. But there are very small differences like below :


User Accounts


AIX


HP-UX


LINUX(RedHat)



Solaris

Password files /etc/passwd

/etc/security/passwd
/etc/passwd

/tcb/files/auth/r/root
/etc/passwd


/etc/shadow
/etc/passwd 

/etc/shadow
Groups file /etc/group


/etc/security/group
/etc/group

/etc/logingroup
/etc/group /etc/group
Maximum # of user ID 4294967295 2147483647 65535 2147483647
Allow/Deny remote login /etc/security/user

{rlogin=true}
/etc/securetty

{console}
/etc/securetty

{ttyp1}
/etc/default/login

{CONSOLE=/dev/console}
User nobody's id # 4294967294 -2 99 60001 & 65534(nobody4)
Group nobody's id # 4294967294 -2(nogroup) 99 60002 & 65534(nogroup)
Recover root password boot from CD/Tape

Installation/Maintenance


Start Limited Shell

getrootfs hdisk0

vi /etc/security/passwd
>boot

Interact with IPL ? Y


ISL>hpux -iS


passwd root
{lilo}

control-x

linux S

passwd root


{grub}

c


kernel vmlinuz-2.4.9-13 single   ro root=/dev/hda8

initrd /initrd-2.4.9-13.img

boot

passwd root
boot cdrom -s


mkdir /tmp/a

mount /dev/c0t0d0s0 /tmp/a

vi /tmp/a/etc/shadow
Create new user mkuser useradd useradd useradd
Delete user rmuser userdel userdel userdel
List users lsuser -f ALL logins   logins
Modify user account chuser -a usermod usermod usermod

No Response to "Unix/Linux user account related information"

Leave A Reply

 
Free Website Hosting