Operating System - HP-UX
1753903 Members
10137 Online
108810 Solutions
New Discussion юеВ

HP-UX 11.31 Cannot change group sticky bit on directory

 
Maximum
New Member

HP-UX 11.31 Cannot change group sticky bit on directory

I have the following directory:

drwxr-xr-x 3 user user 96 Jan 8 12:49 UNIX_RELEASES

If I run:

chmod 2755 of chmod g+s the permissions stay the same.

Any ideas?

FYI:

HP-UX system B.11.31 U ia64 0019355631 unlimited-user license

6 REPLIES 6
Tim Nelson
Honored Contributor

Re: HP-UX 11.31 Cannot change group sticky bit on directory

Should work just fine...

The only thought I had was if UNIX_RELEASES was a soft link, but the provided paste does not seem to look that way.

Create some directories somewhere else, like in /tmp, and see if there is a problem there, it may help isolate the issue.

Maximum
New Member

Re: HP-UX 11.31 Cannot change group sticky bit on directory

Yeah, I created a TEST directory and I was able to chmod the permissions with out a problem.

I check the forums, but since this is not a link, I though I would ask.
Tingli
Esteemed Contributor

Re: HP-UX 11.31 Cannot change group sticky bit on directory

Is there anything mounted on that directory? If it is mounted, then you can not change it the usual way.
Maximum
New Member

Re: HP-UX 11.31 Cannot change group sticky bit on directory

My apologies, it turned out to be something really simple.

If you are going to set the s bit on a directory and you are not root, you better be the owner and group owner of the directory.

Turns out I was not the group owner of the directory. The funny part is that the OS never returned an error message.

Thanks to those that read my post even more to those that replied.

C.
Maximum
New Member

Re: HP-UX 11.31 Cannot change group sticky bit on directory

See previous comments
Dennis Handly
Acclaimed Contributor

Re: HP-UX 11.31 Cannot change group sticky bit on directory

>The funny part is that the OS never returned an error message.

A real shell gives an error:
$ chmod g+s /var/tmp
chmod: can't change /var/tmp: Not owner