Operating System - HP-UX
1825704 Members
3271 Online
109686 Solutions
New Discussion

Re: set-owner-ID-on-file and trusted mode

 
SOLVED
Go to solution
Andreas Klaer
Valued Contributor

set-owner-ID-on-file and trusted mode

Hello,

I need a s-bit on a file to have it executed with the owner's ID.
However, since the system has been converted to trusted mode I get prompted that "Setuid execution not allowed".
Is there a way to make this work? As I recognized /usr/sbin/passwd has the s-bit set, too.

Regards,

Andreas.
Andreas Klaer
2 REPLIES 2
Dan Hetzel
Honored Contributor
Solution

Re: set-owner-ID-on-file and trusted mode

Hi Andreas,

Is your file on a NFS filesystem ?
If this is the case, the filesystem could be mounted with 'nosuid' flag.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Christopher Caldwell
Honored Contributor

Re: set-owner-ID-on-file and trusted mode

nosuid,suid is a filesystem level priv (it's not just for NFS, vxfs and HFS have the nosuid,suid options)

It's also a user level priv (i.e. based on UID). See setprivgrp, getprivgrp and privgrp. Here's an excerpt from privgrp

PRIV_SETRUGID
Permits the use of the setuid() and setgid() system calls for changing respectively the real user ID and real group ID of a process (see setuid(2)).