Re: read smb drive

From: Date: Fri, 05 Nov 2010 18:09:56 +0000
Subject: Re: read smb drive
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-309348@lists.php.net to get a copy of this message
Small and maybe useless note about privileges required to exec 'mount' command via php's system(): root is not required if 'user' option exists in /etc/fstab. It is true because mount cmd has always root privileges due to suexec bit and it decides whether calling user is authorized to mount something or not. 2010/11/5, Steve Staples <sstaples@mnsi.net>: > Hey guys (and gals) > > I am writing something that needs to connect to a SMB server... can this > be done easliy? > > I copied a sample code from php.net that used the system() command and > mounted the SMB to a /mnt/tmp partion, and technically, it works.... the > problem is, is that mount has to be run as root... > > is there a way to put the "mount/unmount" commands into an allowed > command? i supposed, the other problem is, is waht if this is on a > windows machine? > > i dont really want to mess with permissions too much, since this will > have to be portable from linux to windows... any help would be > appreciated... > > Steve > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#309348) next »