Re: 'logins' for non-privileged users
From: J (me_at_nospam.com)
Date: 02/29/04
- Next message: Rodrick Brown: "Re: Interprocess communication??"
- Previous message: Thomas Glanzmann: "Re: I need pkginfo and pkgadd?"
- In reply to: gusmeister: "'logins' for non-privileged users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 Feb 2004 18:34:20 +0200
On Sat, 28 Feb 2004 13:50:07 -0500, gusmeister wrote:
> The 'logins' utility provides information about all user accounts on a local
> machine (regardless of whether the accounts are local or NIS/NIS+). The
> problem is that this utility (on Solaris 8, at least) is available only to
> root. Is there a utility, similar to 'logins', for non-privileged users?
The logins utility needs root because it reads the /etc/shadow file or NIS
colums for the same info. This info is useful to security administrators
and to people trying to break into a system only (Eg finding accounts with
no password)
Do you need the normal user utility for specific info, eg Full name, shell,
home dir? If so, it would be simpler to write a awk command to just
extract the relevant column from /etc/passwd. If oyu need this for NIS /
NIS+, a similar script to read the public columns in passwd.org_dir would
apply. getent will follwo nsswitch.conf if you need to produce something
which works in NIS, NIS+ ldap and Files environments. See the man pages
for niscat and getent.
let me know if you need some help with an awk script at
echo "hmasprtz@globmaspl.co.zmasp" | sed 's/masp/a/g'
_Johan
- Next message: Rodrick Brown: "Re: Interprocess communication??"
- Previous message: Thomas Glanzmann: "Re: I need pkginfo and pkgadd?"
- In reply to: gusmeister: "'logins' for non-privileged users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]