ERLEDIGT
JA
JA
ANTWORTEN
6
6
ZUGRIFFE
2764
2764
EMPFEHLEN
-
21.02.07 15:58 #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
-
Das kannst Du bei bestehenden Usern mittels usermod aendern.
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
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
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 von Friedrich Nietzsche
-
21.02.07 16:12 #3
- Registriert seit
- Aug 2003
- Ort
- Berlin
- Beiträge
- 1.362
Danke dir, hat Perfekt geklappt.
Grüße
-
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 von Friedrich Nietzsche
-
21.02.07 16:24 #5
- Registriert seit
- Aug 2003
- Ort
- Berlin
- Beiträge
- 1.362
Jo.
wird erledigt.
-
06.03.07 21:52 #6
- 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.htmlGeändert von real_consul (06.03.07 um 22:09 Uhr)
-
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 von Friedrich Nietzsche
Ähnliche Themen
-
Linux-Homerverzeichnis - "fixieren"?...
Von real_consul im Forum Linux & UnixAntworten: 6Letzter Beitrag: 07.03.07, 10:34 -
Suse Linux 10
Von Leola13 im Forum SmalltalkAntworten: 11Letzter Beitrag: 11.11.05, 23:55 -
suse linux 9.1
Von barnetdog im Forum Linux & UnixAntworten: 2Letzter Beitrag: 11.06.04, 22:34 -
SuSe Linux 8.0
Von Nuklearflo im Forum Linux & UnixAntworten: 16Letzter Beitrag: 25.06.02, 08:13





Zitieren
Login





