[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wo umask ändern?



Christian Schnobrich schrieb:
Hallo,

Ich würde gerne meine umask ändern. Entsprechenden Einträge finde ich in
~/.bash_profile und in /etc/login.defs -- aber eine Änderung dort
bewirkt nichts (ja, ich habe mich zwischendurch ab-/angemeldet).

Wo sonst kann noch was stehen? Ich habe mit grep nach weiteren
umask-Einträgen gesucht, aber vergebens.


Du musst für nicht-loggin-shells auch einen eintrag in ~/.bashrc machen und für z.B. KDE in ~/.xsession


Zitat:
After you have logged in, more copies of your shell will be run. Unless they are started with --login or have a dash in the process name, these sessions will not be login shells. If they give you a prompt, however, they are called interactive shells. If bash is started as interactive, but not login, it will ignore /etc/profile and ~/.bash_profile and will instead source ~/.bashrc.

Als Übersicht:
	--------------------------------------------
	| interactive |	login |	profile	|  rc 	   |
	|-------------|-------|---------|----------|
	| yes	      |	yes   |	source	|  ignore  |
	|-------------|-------|---------|----------|
	| yes 	      |	no    |	ignore 	|  source  |
	|-------------|-------|---------|----------|
	| no 	      |	yes   |	source 	|  ignore  |
	|-------------|-------|---------|----------|
	| no 	      |	no    |	ignore 	|  ignore  |
	|-------------------------------------------


hth Ulrich



Reply to: