[CentOS] Running mount in a script.

Lists lists at littlebald.com
Fri Apr 28 19:35:45 UTC 2006


On Fri, 28 Apr 2006, Michael Jacks wrote:

> I am running CentOS 4 and have the need to run "mount -t cifs ..." from
> within a perl or bash script as part of an application.  The
> application does not run as root.

If I remember right, suid scripts just can't be done securely.

Can you use the automounter?  If it's set up correctly, your script
can get the filesystem mounted by simply doing an "ls".


-David



More information about the CentOS mailing list