On Wednesday 25 Sep 2002 10:20 pm, John Richard Smith wrote: > Sridhar Dhanapalan wrote: > >Make sure the permissions are "-rwxr-xr-x" (as above), and that the > > owner and group are root. > > [root@localhost root]# chown root:root /usr/local/bin/chcase > [root@localhost root]# ls -la /usr/local/bin/chcase > -rw-r--r-- 1 root root 3921 Sep 24 15:29 > /usr/local/bin/chcase > > This is not working. I suspect something is overriding > the command and changing it back.It seems that > it does not matter if I issue the above command , or go > to the permissions window for /usr/local/bin/chcase and > insert x in the right places. Something removes them. > But, > > [root@localhost root]# cd /root/Desktop/mont (where the .JPG files are > stored) > [root@localhost mont]# chcase > Setuid/gid script is writable by world. > > [root@localhost mont]# ls -la /usr/local/bin/chcase > -rwsrwsrw- 1 root root 3921 Sep 24 15:29 > /usr/local/bin/chcase* > > This is Wierd, > > So lets try again, fresh terminal, > > [root@localhost root]# chmod 755 chcase > chmod: failed to get attributes of `chcase': No such file or directory > > you don't think maybe it ought to be chmod 755 /usr/local/bin/chcase, > so lets try, > > [root@localhost root]# chmod 755 /usr/local/bin/chcase > [root@localhost root]# > > that's better, <snip> On Wednesday 25 Sep 2002 10:59 pm, Sridhar Dhanapalan wrote: > Glad to see you've gotten chcase to run. I still don't know what the > problem was > -- it looks like a bug in the shell.
It looks like you weren't in the /usr/local/bin directory when issuing those commands thats why using the full path worked. Most likely because the file was not originally executable it was not recognised as being in your path? - so it was necessary to give the full path. If it sounds like I'm talking gibberish, never mind. I was trying to point out that its not likely a bug in your shell. Sharrea -- The box said "Requires Windows 95 or better" so I installed Linux.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
