HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX 11.31 Cannot change group sticky bit on directory

 
Maximum
Occasional Visitor

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
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
Occasional Visitor

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
Occasional Visitor

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
Occasional Visitor

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

See previous comments

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