Hallo,
Ich habe da ein Notebook mit Debian Linux, welches ich für die Schule benutze. Ich nutze es manchmal auch auf der Arbeit und eben zu Hause. Das sind 3 verschiedene Netzwerke, ergo auch 3 verschieden User. Die IP- Zuweisung erfolgt mittels dhcp. Ich möchte jetzt ein Script schreiben, bei welchem das Notebook am entsprechenden Netzwerk anmeldet (durch den User bestimmt), und die freigegebenen Resourcen einbindet. Wenn ich das Script habe, wo muss ich das speichern, damit es beim einloggen des Users aufgerufen wird? Oder hat jemand schon ein solches Script?
mit bestem Dank im voraus und freundlichen Grüssen,
Mike
user spezifische login scripts
-
- Posts: 44
- Joined: 29. May 2001 21:16
- Location: Bern/Schweiz
Re: user spezifische login scripts
Die Datei wo du das Script angeben müsstest wäre "~/.profile".
Source: (~/.bashrc)
# There are 3 different types of shells in bash: the login shell, normal shell
# and interactive shell. Login shells read ~/.profile and interactive shells
# read ~/.bashrc; in our setup, .profile sources .bashrc - thus all settings
# made here will also take effect in a login shell.
P.S.: Ich gehe einfach davon aus, dass du bash als shell hast.
Source: (~/.bashrc)
# There are 3 different types of shells in bash: the login shell, normal shell
# and interactive shell. Login shells read ~/.profile and interactive shells
# read ~/.bashrc; in our setup, .profile sources .bashrc - thus all settings
# made here will also take effect in a login shell.
P.S.: Ich gehe einfach davon aus, dass du bash als shell hast.