tutorials.de Buch-Aktion 05/2012
ERLEDIGT
JA
ANTWORTEN
6
ZUGRIFFE
2764
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    Registriert seit
    Aug 2003
    Ort
    Berlin
    Beiträge
    1.362
    Hallo,

    kann mir jemand Sagen wie ich das Homeverzeichnis verlegen kann? bspw. von /home/benutzer auf /etc/benutzer.

    /etc/ dient nur als Beispiel, ist nicht das Tatsächliche Ziel. Ich habe schon über Yast geschaut, konnte aber nichts weiter finden.

    Danke

    Grüße
     

  2. #2
    Avatar von Dennis Wronka
    Dennis Wronka Dennis Wronka ist offline Soulcollector
    Registriert seit
    Apr 2002
    Ort
    Hong Kong
    Beiträge
    12.296
    Blog-Einträge
    231
    Das kannst Du bei bestehenden Usern mittels usermod aendern.
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    
    bash-3.1# usermod --help
    Usage: usermod [options] login
     
    Options:
      -a, --append GROUP            append the user to the supplemental GROUP
      -c, --comment COMMENT         new value of the GECOS field
      -d, --home HOME_DIR           new login directory for the new user account
      -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
      -f, --inactive INACTIVE       set password inactive after expiration
                                    to INACTIVE
      -g, --gid GROUP               force use GROUP as new initial login group
      -G, --groups GROUPS           list of supplementary GROUPS
      -h, --help                    display this help message and exit
      -l, --login LOGIN             new value of the login name
      -L, --lock                    lock the user account
      -m, --move-home               move contents of the home directory to the new
                                    location (use only with -d)
      -o, --non-unique              allow using duplicate (non-unique) UID
      -p, --password PASSWORD       use encrypted password for the new password
      -s, --shell SHELL             new login shell for the user account
      -u, --uid UID                 new UID for the user account
      -U, --unlock                  unlock the user account
    Wenn Du einen neuen User anlegst kannst Du es auch gleich mit angeben:
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    
    bash-3.1# useradd --help
    Usage: useradd [options] LOGIN
     
    Options:
      -b, --base-dir BASE_DIR       base directory for the new user account
                                    home directory
      -c, --comment COMMENT         set the GECOS field for the new user account
      -d, --home-dir HOME_DIR       home directory for the new user account
      -D, --defaults                print or save modified default useradd
                                    configuration
      -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
      -f, --inactive INACTIVE       set password inactive after expiration
                                    to INACTIVE
      -g, --gid GROUP               force use GROUP for the new user account
      -G, --groups GROUPS           list of supplementary groups for the new
                                    user account
      -h, --help                    display this help message and exit
      -k, --skel SKEL_DIR           specify an alternative skel directory
      -K, --key KEY=VALUE           overrides /etc/login.defs defaults
      -m, --create-home             create home directory for the new user
                                    account
      -o, --non-unique              allow create user with duplicate
                                    (non-unique) UID
      -p, --password PASSWORD       use encrypted password for the new user
                                    account
      -s, --shell SHELL             the login shell for the new user account
      -u, --uid UID                 force use the UID for the new user account
     
    PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
    Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
    __________________
    EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
    EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
    __________________
    Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
    __________________
    Zitat Zitat von Friedrich Nietzsche
    Man muss noch Chaos in sich haben, um einen tanzenden Stern gebaeren zu koennen.

  3. #3
    Registriert seit
    Aug 2003
    Ort
    Berlin
    Beiträge
    1.362
    Danke dir, hat Perfekt geklappt.

    Grüße
     

  4. #4
    Avatar von Dennis Wronka
    Dennis Wronka Dennis Wronka ist offline Soulcollector
    Registriert seit
    Apr 2002
    Ort
    Hong Kong
    Beiträge
    12.296
    Blog-Einträge
    231
    Nichts zu danken.

    Denk bitte noch daran den Thread als erledigt zu markieren.
     
    PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
    Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
    __________________
    EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
    EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
    __________________
    Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
    __________________
    Zitat Zitat von Friedrich Nietzsche
    Man muss noch Chaos in sich haben, um einen tanzenden Stern gebaeren zu koennen.

  5. #5
    Registriert seit
    Aug 2003
    Ort
    Berlin
    Beiträge
    1.362
    Jo.

    wird erledigt.
     

  6. #6
    real_consul real_consul ist offline Grünschnabel
    Registriert seit
    Mar 2007
    Beiträge
    4
    da diesem Thread als "erledigt" markiert ist, habe ich ein neuen angefangen:

    http://www.tutorials.de/forum/linux-...-fixieren.html
    Geändert von real_consul (06.03.07 um 22:09 Uhr)
     

  7. #7
    Avatar von Dennis Wronka
    Dennis Wronka Dennis Wronka ist offline Soulcollector
    Registriert seit
    Apr 2002
    Ort
    Hong Kong
    Beiträge
    12.296
    Blog-Einträge
    231
    Dass ein Thread als erledigt markiert ist heisst, wie Du ja nun selbst wissen solltest, nicht dass Du dort Dein Problem nicht vorbringen kannst wenn es denn aehnlicher/gleicher Natur ist. Zwingend ist dies aber natuerlich nicht.
    Wenn Du dann aber schon postest dann sollte dies aber auch Deine Frage sein, und nicht einfach nur eine Feststellung und ein Link zu Deinem Thread, den finden wir auch so.
     
    PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
    Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
    __________________
    EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
    EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
    __________________
    Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
    __________________
    Zitat Zitat von Friedrich Nietzsche
    Man muss noch Chaos in sich haben, um einen tanzenden Stern gebaeren zu koennen.

Ähnliche Themen

  1. Linux-Homerverzeichnis - "fixieren"?...
    Von real_consul im Forum Linux & Unix
    Antworten: 6
    Letzter Beitrag: 07.03.07, 10:34
  2. Suse Linux 10
    Von Leola13 im Forum Smalltalk
    Antworten: 11
    Letzter Beitrag: 11.11.05, 23:55
  3. suse linux 9.1
    Von barnetdog im Forum Linux & Unix
    Antworten: 2
    Letzter Beitrag: 11.06.04, 22:34
  4. SuSe Linux 8.0
    Von Nuklearflo im Forum Linux & Unix
    Antworten: 16
    Letzter Beitrag: 25.06.02, 08:13