Suse Linux 10.1 Homerverzeichnis

liquidbeats

Erfahrenes Mitglied
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
 
Das kannst Du bei bestehenden Usern mittels usermod aendern.
Code:
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:
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
 
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. ;)
 
Zurück