Mailinglist Archive: opensuse (3397 mails)
| < Previous | Next > |
Re: [SLE] Sorting user in Yast
- From: Jerry Feldman <gaf@xxxxxxx>
- Date: Mon, 4 Apr 2005 17:28:50 -0400
- Message-id: <200504041728.50593.gaf@xxxxxxx>
On Monday 04 April 2005 2:40 am, Arie Reynaldi Z wrote:
> Hi All,
>
> I have about 150 users in my Suse 8.2 file-server. Right now whenever
> I want to edit one of them, I have to look their unsorted username one
> by one in yast console. So it's kind of time consuming because of
> that. How can I sort that user list ? In SuSE 9.1 I still can't sort
> the user list. Is there any chance suse will add this function so we
> can sort all of users base on usersname, groups, ID, etc.
You might want to edit the password and group files by hand as they are both
plain text files, but it is not altogether perfect:
1. edit the password file using the vipw command.
2. Select all the users and paste them into a temporary file.
3. sort that file either by used name or uid using the sort(1) command
4. pase them back in. Yast will display them in the order you sorted them
in.
Remember to use the vipw(8) command since it locks out simultaneous users
and does a few other things.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
> Hi All,
>
> I have about 150 users in my Suse 8.2 file-server. Right now whenever
> I want to edit one of them, I have to look their unsorted username one
> by one in yast console. So it's kind of time consuming because of
> that. How can I sort that user list ? In SuSE 9.1 I still can't sort
> the user list. Is there any chance suse will add this function so we
> can sort all of users base on usersname, groups, ID, etc.
You might want to edit the password and group files by hand as they are both
plain text files, but it is not altogether perfect:
1. edit the password file using the vipw command.
2. Select all the users and paste them into a temporary file.
3. sort that file either by used name or uid using the sort(1) command
4. pase them back in. Yast will display them in the order you sorted them
in.
Remember to use the vipw(8) command since it locks out simultaneous users
and does a few other things.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
| < Previous | Next > |