1822864 Members
4036 Online
109645 Solutions
New Discussion юеВ

File permissions

 
SOLVED
Go to solution
Matthew Pegge_1
Frequent Advisor

File permissions

I'm trying to change the permissions on a file to -rwsrwsr-x using chmod 6665 however it keeps changing it to -rwSrwSr-x. I've also tried the u+s g+s way of doing it and get the same thing???
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: File permissions

The first thing you need to do is get the file back to rwxrwxr-x so do a 'chmod 775 filename'. Now do a 'chmod u+s,g+s filename' and you should get what you want.
Stefan Farrelly
Honored Contributor

Re: File permissions


You need to do a chmod 7775 for it do display back as -rwsrwsr-x

chmod 6665 will always display with a big S, only if x is set also will it display a small s. see man chmod.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Jean-Louis Phelix
Honored Contributor

Re: File permissions

Hi,

chmod 6775 works for me ...

775 --> rwxrwxr-x
6 will change x for user and group to s

Regards.
It works for me (┬й Bill McNAMARA ...)
Matthew Pegge_1
Frequent Advisor

Re: File permissions

OK brilliant... thanks to you all!