Heiner Lamprecht schrieb in 0,7K (28 Zeilen):
Kilian Huber wrote:
Dann entzieh einfach dem Benutzer die Schreibberechtigung auf die Profildatei. chown root ~/.profile ... Als user:
rm ~/.profile
und eigene erzeugen! Schon ist die Regelung ausgehebelt.
$ ls -lad . .profile .profile.old drwxr-x--- 57 weissel users 5120 Jun 18 21:27 . -rw-r--r-- 1 weissel users 487 Aug 27 1999 .profile -rw-r--r-- 1 weissel users 487 Jun 18 21:33 .profile.old $ whoami weissel $ rm .profile rm: remove write-protected file `.profile'? y rm: cannot unlink `.profile': Operation not permitted $ cat /dev/null > .profile bash: .profile: Permission denied $ rm .profile.old $ rm -r /home/weissel/ rm: remove write-protected file `/home/weissel/.profile'? y rm: cannot unlink `/home/weissel/.profile': Operation not permitted rm: cannot remove directory `/home/weissel': Directory not empty $ Wer weiss die Loesung? :-) -Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com