Permissions advice needed.

Brett Davidson brett at
Tue Jan 9 19:55:41 UTC 2007

Unfortunately, as I expounded to Malcolm Lay, in this application (a
shared-hosting webserver) suexec is being used which does not traverse
symbolic links. :-(
MAC_BSDEXTENDED in Bsd6.2 solves the problem very nicely.


From: George Vanev [mailto:george.vanev at] 
Sent: Tuesday, 9 January 2007 7:42 p.m.
To: Brett Davidson
Subject: Re: Permissions advice needed.

Why don't you make a symbolic link to that file.
You may set read, write and execute permissions if you wish... doesn't
The users will be able to run your executable via the link,
but they won't be able to modify it.

On 1/8/07, Brett Davidson <brett at> wrote: 

	I have a curious problem.
	I need an executable file to be owned by a user's uid and gid so
	can run it.
	HOWEVER, I don't want them to be able to modify or delete the
	and/or it's permissions. Another program will do that.
	This, under standard Unix permissions, is a tad difficult. :-) 
	ACL's don't help here as the owner of a file has the ability to
	I could set the immutable bit (Linux term for the schg flag) but
	modifying program does not recognise this flag and will thus
fail to 
	modify the file.
	(I have no control over the modifying program).
	Any ideas?
	I don't want to go down the line of using BSD MAC but I'm
starting to
	think I may have too just to be able to prevent the user from
	ONE file! (I'm not even sure I could implement this using MAC
	freebsd-questions at mailing list
	To unsubscribe, send any mail to "
freebsd-questions-unsubscribe at
<mailto:freebsd-questions-unsubscribe at> "

George Vanev

More information about the freebsd-questions mailing list