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? 

Without using the 'user' option for the mount point in /etc/fstab, only
uid=0 can mount/umount a partition.

I am not sure what you mean by not wanting to make mounting/umounting of
vfat partitions available all the time.
Mounting a vfat partition by a user does not make it writable by the user
unless the uid='userid' option is also specified in the mount command or
/etc/fstab file.


-Naren


 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....
>  
>  Any Suggestions  ...?
>  
>  Bye &&
> Thanks in Advance
> > Kaushik
> 
> 
> 
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/linux-india-help
> 


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to