adduser; fetchmail

From: Oleg Osyka <oleg(at)osyka.de>
Date: Sun, 17 Feb 2002 13:45:30 +0100

Hallo zusammen,

dieses Mal habe ich zwei Fragen :-)

1. Was für die Meldung gibt mir "fetchmail" aus?

$ fetchmail -vvv
$ fetchmail: lock creation failed.

2. Gestern habe ich Update gemacht, und heute wollte ich einen Benutzer
hinzufügen, aber es hat gar nichts geklappt:

------------------------------------------------------------
Script started on Sun Feb 17 12:57:33 2002
freebsd# adduser
Use option ``-silent'' if you don't want to see all warnings and questions.

Check /etc/shells
Check /etc/master.passwd
Check /etc/group
Usernames must match regular expression: [valeria]: rob1
Enter your default shell: bash csh date no sh tcsh [bash]:
Your default shell is: bash -> /usr/local/bin/bash
Enter your default HOME partition: [/home/valeria]: rob1
Please use absolute path for home: ``rob1''.
Enter your default HOME partition: [/home/valeria]: /home/rob1
Create /home/rob1
Copy dotfiles from: /usr/share/skel no [/usr/share/skel]:
Send message from file: /etc/adduser.message no
[/etc/adduser.message]:
Use passwords (y/n) [y]: y

Write your changes to /etc/adduser.conf? (y/n) [n]: y

Ok, let's go.
Don't worry about mistakes. I will give you the chance later to correct any input.
Enter username [rob1]:
Please enter a username
Enter username [rob1]:
Please enter a username
Enter username [rob1]:
Please enter a username
Enter username [rob1]: rob1
Please enter a username
Enter username [rob1]: rob1
Please enter a username
Enter username [rob1]: ^C
freebsd# exit
exit

Script done on Sun Feb 17 12:58:58 2002
----------------------------------------------

Dann habe ich im /usr/src/usr.sbin/adduser.perl:

----------------------------------------------
sub new_users_name_valid {
    local($name) = @_;

    if ($name eq $usernameregexp) { # user/admin just pressed <Return>
        warn "Please enter a username\a\n";
# return 0; # Ich hab auskommentiert
        return 1; # und das eingefügt
        ^^^^^^^^^

    } elsif (length($name) > 16) {
        warn "Username is longer than 16 characters.\a\n";
        return 0;
    } elsif ($name =~ /[:\n]/) {
        warn "Username cannot contain colon or newline characters.\a\n";
        return 0;
    } elsif ($name !~ /$usernameregexp/) {
        if ($usernameregexp eq $defaultusernameregexp) {
            warn "Illegal username.\n" .
                "Please use only lowercase Roman, decimal, underscore, " .
[...]
---------------------------------------------------
erst dann hat dieses Script funktioniert, aber sowieso wurden die
Dateien vom /usr/share/skel nach /home/rob1 nicht geschrieben.

Was ist denn los mit diesem adduser?

-- 
Gruß,
Oleg.
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 17 Feb 2002 - 13:45:53 CET

search this site