1834178 Members
2364 Online
110064 Solutions
New Discussion

Chmod question

 
SOLVED
Go to solution
Kenn Chen_1
Advisor

Chmod question

my dir as below
drwsrwsrwx 2 root system 512 Nov 21 10:51 logs

and how to change the "s" to "x" ?
4 REPLIES 4
Adisuria Wangsadinata_1
Honored Contributor

Re: Chmod question

Hi Kenn,

try this :

# chmod 777 logs

For more details, see man page of chmod

# man chmod

Hope this information can help.

Regards,
Adi.
now working, next not working ... that's unix
Kenn Chen_1
Advisor

Re: Chmod question

Hi, forgot to tell you that the server is IBM AIX platform.

chmod 777 cannot change the "s" to "x" ..
thanks
Yogeeraj_1
Honored Contributor

Re: Chmod question

hi,

why do you want to change this?

In AIX, this is considered to be a NICE special feature!

When the command is executed, the effective user and group IDs are set to those that own the cmd file. Only the effective IDs associated with the child process that runs the cmd command are changed. The effective IDs of the shell session remain unchanged.

This feature allows you to permit access to restricted files. Suppose that the cmd program has the Set-User-ID Mode enabled and
is owned by a user called dbms. The user dbms is not actually a person, but might be associated with a database management system.
The user betty does not have permission to access any of dbms's data files. However, she does have permission to execute the cmd command. When she does so, her effective user ID is temporarily changed to dbms, so that the cmd program can access the data files
owned by the user dbms.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor
Solution

Re: Chmod question

hi again,

if you really want to do that:

try:
chmod -R ugo-s logs

then

chmod -R -ugo+x logs

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)