-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I must admit I feel silly having to ask, but I've been banging my head against this for a couple days now and I am completely stumped.

I just recently switched from Slackware Linux 8.0 to FreeBSD. There are a couple of scripts I use for my own convenience that I ran setuid root on my Linux box. All that I had to do was make sure the scripts were owned by root, and then do a chmod 4711 on them to make it work in Linux. I just set up a script on FreeBSD - the first time I've actually done it since I switched. I followed the same procedure, but when I run the script as a normal user, it does not run with elevated priveleges.

I've scoured the web for info on this but all I have been able to find references to are difficulties with Perl scripts. I don't know Perl (yet). I took all the extraneous stuff out of my script and boiled it down to three simple commands that I know work - just to make sure my program logic wasn't the problem.

Here it is:

#!/bin/tcsh

mkdir $3
chown -R $1 $3
chgrp -R $2 $3
chmod -R 771 $3

So now it's down to a proof-of-concept script. If I can make this work with the elevated privileges, I can move on to the real script. Can anyone out there help me understand what I am doing wrong?

Thanks,
Paul D. Lathrop
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+bWgklos2supvBQwRAtZ8AJ48Xs+FIweasAck0/Iz47mnp2VeUACfZZXr
+QBNLYIcHErEwbaP6HDZBM0=
=/b6N
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message

Reply via email to