On Mon, 3 Jun 2002, Eric wrote:
> However, this command works sometimes, and sometimes only results in 
> a "permission denied, operation not permitted" message.  For 
> instance, /usr/bin/cu and /usr/bin/rsh resulted in that error message, 
> but /usr/bin/lpr did work.  Why the difference?

sounds like the immutable bit is set:

[root@lx jon]# ls -la /usr/bin/cu
-r-sr-sr-x    1 uucp     uucp       129908 Feb  1 14:08 /usr/bin/cu
[root@lx jon]# chattr +i /usr/bin/cu
[root@lx jon]# ls -la /usr/bin/cu
-r-sr-sr-x    1 uucp     uucp       129908 Feb  1 14:08 /usr/bin/cu
[root@lx jon]# lsattr /usr/bin/cu
---i---------- /usr/bin/cu
[root@lx jon]# chmod -s /usr/bin/cu
chmod: changing permissions of `/usr/bin/cu': Operation not permitted
[root@lx jon]# chattr -i /usr/bin/cu
[root@lx jon]# chmod -s /usr/bin/cu
[root@lx jon]# ls -la /usr/bin/cu
-r-xr-xr-x    1 uucp     uucp       129908 Feb  1 14:08 /usr/bin/cu

-jon

-- 
[EMAIL PROTECTED] || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus? www.divisionbyzero.com/pgp.html
"You are in a twisty little maze of Sendmail rules, all confusing." 

Reply via email to