hallo, can a root user create a file in a regular user's home directory so that the regular user can not remove it? it does not seem to work... ----------------- start ------------------------------------ $ pwd /home/alexm $ id uid=1000(alexm) gid=100(users) groups=100(users) $ ls -l file1 -rwx------ 1 root root 0 Jun 17 14:35 file1 $ rm file1 rm: remove write-protected file `file1'? y $ ls -l file1 ls: file1: No such file or directory $ ------------------ end -------------------------------------- thanks, -alexm
chattr +i file1 works for ext2, I don't know for reiserfs. On Sat, 17 Jun 2000, alex medvedev wrote:
hallo,
can a root user create a file in a regular user's home directory so that the regular user can not remove it? it does not seem to work...
----------------- start ------------------------------------ $ pwd /home/alexm $ id uid=1000(alexm) gid=100(users) groups=100(users) $ ls -l file1 -rwx------ 1 root root 0 Jun 17 14:35 file1 $ rm file1 rm: remove write-protected file `file1'? y $ ls -l file1 ls: file1: No such file or directory $ ------------------ end --------------------------------------
thanks,
-alexm
--------------------------------------------------------------------- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
Try using 'chattr' . I have reiserfs so chattr is not working. It should work on ext2. On Sat, 17 Jun 2000, alex medvedev wrote:
hallo,
can a root user create a file in a regular user's home directory so that the regular user can not remove it? it does not seem to work...
----------------- start ------------------------------------ $ pwd /home/alexm $ id uid=1000(alexm) gid=100(users) groups=100(users) $ ls -l file1 -rwx------ 1 root root 0 Jun 17 14:35 file1 $ rm file1 rm: remove write-protected file `file1'? y $ ls -l file1 ls: file1: No such file or directory $ ------------------ end --------------------------------------
thanks,
-alexm
--------------------------------------------------------------------- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
-- /*****************************************************************. # Indraneel Majumdar # E-mail: indraneel@123india.com # # 4/2 Arobindo Avenue, # URL: http://scorpius.iwarp.com # # Durgapur, India 713204 # Tel: +91-343-563571 # `*****************************************************************/
Yes, If you chown,chgrp it should work Peter C. Hinkle drumvudu@flash.net http://sites.netscape.net/drumvoodoo1/linuxlinks SuSE Linux 2.2.13 On Sun, 18 Jun 2000 lists@123india.com wrote:
Try using 'chattr' . I have reiserfs so chattr is not working. It should work on ext2.
On Sat, 17 Jun 2000, alex medvedev wrote:
hallo,
can a root user create a file in a regular user's home directory so that the regular user can not remove it? it does not seem to work...
----------------- start ------------------------------------ $ pwd /home/alexm $ id uid=1000(alexm) gid=100(users) groups=100(users) $ ls -l file1 -rwx------ 1 root root 0 Jun 17 14:35 file1 $ rm file1 rm: remove write-protected file `file1'? y $ ls -l file1 ls: file1: No such file or directory $ ------------------ end --------------------------------------
thanks,
-alexm
--------------------------------------------------------------------- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
-- /*****************************************************************. # Indraneel Majumdar # E-mail: indraneel@123india.com # # 4/2 Arobindo Avenue, # URL: http://scorpius.iwarp.com # # Durgapur, India 713204 # Tel: +91-343-563571 # `*****************************************************************/
--------------------------------------------------------------------- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
On Sun, 18 Jun 2000, Peter C. Hinkle wrote:
Yes, If you chown,chgrp it should work
Try using 'chattr' . I have reiserfs so chattr is not working. It should work on ext2.
hallo,
can a root user create a file in a regular user's home directory so that the regular user can not remove it? it does not seem to work... Have a look at the directory-Mode. Writing a directory means deleting and creating files. Normaly the best thing is a t-bit like at /tmp. (T means afaik sTicky but I'm not sure!)
CU Jens Kühnel (SCLT)
participants (5)
-
alex medvedev
-
Jens Kuehnel
-
lists@123india.com
-
Nicolae Mihalache
-
Peter C. Hinkle