Am 2005-01-14 23:54:04, schrieb Thomas Kosch: > On Day 14 of Chaos 3171, Michelle Konzack wrote: > > > Sternchen angezeigt und meine UIDs sind "<vorname>.<nachname>" > > (es gibt jede menge Personen, die nicht wissen wie das geht...) > > Da geh�re ich auch zu. Kannst du mir den Trick mal verraten
1) Sternchens
____( '/etc/login.defs' )_____________________________________________
/
| # When prompting for password without echo, getpass() can optionally
| # display a random number (in the range 1 to GETPASS_ASTERISKS) of '*'
| # characters for each character typed. This feature is designed to
| # confuse people looking over your shoulder when you enter a password :-).
| # Also, the new getpass() accepts both Backspace (8) and Delete (127)
| # keys to delete previous character (to cope with different terminal
| # types), Control-U to delete all characters, and beeps when there are
| # no more characters to delete, or too many characters entered.
| #
| # Setting GETPASS_ASTERISKS to 1 results in more traditional behaviour -
| # exactly one '*' displayed for each character typed.
| #
| # Setting GETPASS_ASTERISKS to 0 disables the '*' characters (Backspace,
| # Delete, Control-U and beep continue to work as described above).
| #
| # Setting GETPASS_ASTERISKS to -1 reverts to the traditional getpass()
| # without any new features. This is the default.
|
| GETPASS_ASTERISKS 1
\______________________________________________________________________
2) UID's mit "<vorname>.<nachname>"
____( '/usr/sbin/adduser' )___________________________________________
/
| setlocale(LC_MESSAGES, "");
| textdomain("adduser");
|
| $verbose = 1; # should we be verbose?
| $allow_badname = 1; # should we allow bad names?
^
Das mu� auf 1 gesetzt werden, da Du sonnst jedesmal die Option
"--force-badnames" beim Anlegen eines Beutzers verwenden mu�t.
| $ask_passwd = 1; # ask for a passwd?
|
| $defaults = "/etc/adduser.conf";
<snip>
| # is name ok?
| sub checkname {
| my ($name) = @_;
| if ($allow_badname && $name !~ /^[A-Za-z_][-_.A-Za-z0-9]*\$?$/) {
^
Der Punkt mu� da rein...
| print STDERR
| "$0: ",_("To avoid problems, the username should consist of a letter or
| underscore followed by letters, digits, underscores, and dashes. For
| compatibility with Samba machine accounts also \$ is supported at the
| end of the username\n");
Eigentlich sollte man da den Text gleich mitanpassen...
| exit 1;
| }
\______________________________________________________________________
Wenn Du chown verwendest, mu�t du in Zukunft z.B.
chown <vorname>.<nachname>:<group> *
^
Doppelpunkt
verwenden...
Soviel ich weis, wird diese Funktionalit�t aber erst NACH SARGE
hinzugef�gt weil das Paket "adduser" frozen ist.
Ich verwende das schon seit POTATO...
Dazu sei zu beachten, das 'adduser' ein frontend f�r 'useradd' ist
das wiederum ohne wenn und aber UID's mit punkten akzeptiert.
Wenn Du also Deine USER zu fu� administrierst, weil Du die UID/GID
anderst aufteilen willst, und deswegen mit useradd arbeitest, ist
es egal.
> ttyl8er, t.k.
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

