From: Naren Devaiah <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 12:42 AM
> You made the script g+s and made Tom the group owner... So when the script
> runs, it will run under uid of Tom and gid of Tom. Does the problem become
> obvious now?
No !!!??, the script has been given +s execution stamp, so the effective uid
during execution is that of the super user...
> I am not sure what you mean by not wanting to make mounting/umounting of
> vfat partitions available all the time.
Mount on an as & when basis . Not available all the time...
(Binad suggested using sudo... !! Great but can it be done manually too
??)
> > Bye
> > Kaushik
> On Sun, 20 May 2001, Zen wrote:
>
> > I want to give a particular user( say Tom) , comming through Telnet on
a
> > local Lan permissions to mount the Fat partitions as necessary on a
dual
> > boot PC....
> > I don't want em available all the time, so putting em in /etc/fstab is
> > out...
> >
> > I have a script in the /root folder ---as below && a umount in the
logout
> > script file...
> >
> > if mount -t vfat /dev/hda1 /mnt/vfat
> > then
> > echo -e "\nVfat Partition /dev/hda1 mounted"
> > else
> > echo "\n Unable to mount vfat Partition"
> > fi
> > #----------------------------
> > Made owner of file as root && group owner same as Tom,( with no write
> > permission) given the file a chmod g+s stamp.
> >
> > However this does'nt work out....?
> > It says something like only the root can do that....
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help