Am Donnerstag 11 Oktober 2007 schrieb Florian Lindner: Hi Florian! > > > Wenn ich ein source .bash_profile mache wird die umask geändert. > > > > Bau mal ein echo in deine .bashrc ein um wirklich sicherzugehen, dass > > sie nicht verarbeitet wird, es könnt ja sein, umask schlägt einfach > > fehl > > Die Datei wird wohl wirklich nicht verarbeitet. Siehe aber auch mein > anderes Posting in diesem Thread. Es gibt da meines Wissens mindestens ein Bugreport mit einer endlosen Geschichte zur umask-Thematik. Das war allerdings mit gdm, der alle bekannten Orte zum Einstellen der umask geflissentlicht ignorierte. Ich habs ihm glaub ich dann in ein X11-bezogenes Startskript nach dem Start des gdm reingeschrieben oder so. Ob der Bug noch aktuell ist, weiß ich nicht. Mit KDM gabs dieses Problem nicht. Ansonsten sollte pam-umask helfen: martin@shambala> apt-cache search pam-umask | head -1 libpam-umask - adjust users' default umask using PAM Und ein paar Hints die grep -r "umask" /etc/* ausgibt: --------------------------------------------------------------------- login.defs:# UMASK Default "umask" value. login.defs:# UMASK usage is discouraged because it catches only some classes of user login.defs:# umask in shell rc file will catch also logins through su, cron, ssh etc. login.defs:# At the same time, using shell rc to set umask won't catch entries which use login.defs:# Therefore the use of pam_umask is recommended (Debian package libpam-umask) login.defs:# This avoids the confusion created by having the umask set login.defs:# 022 is the "historical" value in Debian for UMASK when it was used login.defs:#UMASK 022 login.defs:# Other former uses of this variable such as setting the umask when [...] profile:umask 022 [...] skel/.bash_profile:# the default umask is set in /etc/login.defs skel/.bash_profile:#umask 022 --------------------------------------------------------------------- Also so wie ich das sehe aus diesen Hinweisen sehe, spricht Einiges für pam-umask. Viel Spaß beim Rumprobieren ;-). Ciao, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Attachment:
signature.asc
Description: This is a digitally signed message part.