1846418 Members
3240 Online
110256 Solutions
New Discussion

Re: rm problem

 
Starrynight
Advisor

rm problem

Hello everyone

Umask
# umask
027

File permissions
#ll test
-rw-rw---- 1 16 Dez 9 12:00 test

Directory permissions:
drwxrwx---

Why do I get this message
test: 640 mode ? (y/n) ??????????

Thanks in advance.
SN
System administrator
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: rm problem

What are the permissions on the directory?

What user are you?

rm -f filename will override the prompt, even if you are root.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert-Jan Goossens
Honored Contributor

Re: rm problem

Hi SN,

You are not the owner of the file, like in below example.

/home/gorj# ls -la test
-rw-r--r-- 1 root sys 0 Dec 9 13:38 test

/home/gorj# rm test
test: 644 mode ? (y/n) n

/home/gorj# rm -f test

Regards,
Robert-Jan
rmueller58
Valued Contributor

Re: rm problem

if you are deleting a directory with items you need to use:

#rm -Rf