As Dominic Mitchell already pointed out, you're better using sudo than su.
Or just add the option "owner" (and optionally "uid=uid") to /etc/fstab.
Or just chgrp scriptegid /usr/bin/smbmnt ; chmod 04750 /usr/bin/smbmnt.
Regards,
Luciano Rocha
--
Consciousness: that annoying time between naps
e:
>
>
> From: "Heiss, Christian"
<[EMAIL PROTECTED]>
>
> To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
> Subject:Mount something with my perl script
> Date: Wed, 24 Jul 2002 13:55:13 +0200
>
>
>
>
> Hello,
>> # ! /usr/bin/perl -w
>> `su - root -c 'mount -t smbfs -o credentials=
>> // /'`;
Check out the automounter.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582
Heiss, Christian wrote:
> Hello,
>
> I don't know if this is the right mailing list, but well...
>
> How can I mount something with my perl script?
> I've got always the error: mount: only root can do this
>
> So I changed my script something like this:
>
Title: Mount something with my perl script
Hello,
I don't know if this is the right mailing list, but well...
How can I mount something with my perl script?
I've got always the error: mount: only root can do this
So I changed my script something like this:
#! /usr/bin/p