See
I suppose it may depends from the distrib but it should be more or less something like (Ubuntu here)
f1 : name of the account
f2 : account is locked (L)
account has a usable passwd (P)
account has no password (NP)
f3 : date of last passwd modification
f4: minimum duration before modification
f5: maximum duration of validity
f6: duration of warning
f7: autorized duration of inactivity (-1 = endless)
(all duration are in days)
i'm trying to get a samba server up and running.
however, there is no argument in OpenBSD's "passwd" command that i know of that will allow the following:
-l This option is used to lock the specified account
and it is available to root only. The locking is
performed by... (1 Reply)
hi,
i would like to extract the just name field from /etc/passwd file, and nothing else. ie grep pauline, and Pauline Fowler comes back.
cheeers
paul mc (6 Replies)
Helo I m using PAM module on linux system
I have one strange problem.
I have create user and assigned group using my own function.
I m giving more than 8 character password.
Now when I enter upto 8 character then also it will accept.
In short It validate only first 8 character. can U tell... (4 Replies)
Hi there,
I have more that 300 servers that I need to updated the comments field on /etc/passwd for users that have a blank comments fields. The users have accounts on different servers. I have created a list of these users on a text file called update_passwd.txt.
I need a script that will... (6 Replies)
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
I'm having a problem here and I was wondering if anyone could help me? I'm putting together a password script. First off, I don't have root access. I have sudo access. Lets say the User ID is Trevor1, the password is H!rry23! and the server name is Linux1234
This is how the script begins
... (5 Replies)
The script must ask the user to enter the user name and check whether the user exists in /etc/passwd (you must allow the partial usernames also). If the username exists, display the details as:
List of users
Login Name:
User ID:
... (3 Replies)
Hi!
i want to extract from /etc/passwd file,the user and user info fileds, to a another file.I've tried this:
cut -d ':' -f1 ':' -f6 < file
but cut can be used to extract olny one field and not two.
maybe with awk is this possible? (4 Replies)