What you need here is to set the setuid bit. Run this command as root: chmod +s filename
Then when you run ls filename you should see something like: rws--s--x 1 root root 4304 Aug 16 13:51 filename Now when a normal user runs the command, it executes as root. Be careful with this ability! Another point of interest: in /etc/fstab you can specify an option of 'nosuid' on a mount point. This prevents setuid programs from running on the specified filesystem. Casper Boden-Cummins. >---------- >From: > [EMAIL PROTECTED]:[EMAIL PROTECTED] >Sent: 16 August 1996 04:49 >To: debian-user@lists.debian.org >Cc: The recipient's address is unknown. >Subject: How do I allow users to run a single command as root? > >I've written a few scripts to automatically connect to my ISP, which >has >several incoming lines. What I'd like to do is make these scripts so >that >the user running them does not have to be root. I've tried changing the > >permissions to rwx__x__x, still owned by root, but it doesn't do the >job. >I need to make this simply a command a user can run without them having >to know the root password. > >Any ideas on how to accomplish this? I tried reading the man pages, but > >su (which I think is what I would need to use) is not exactly what I'd > >call well documented. > >Thanks, > >Tim O'Brien > >E-mail: [EMAIL PROTECTED] > > >