Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - Network & Security > ARCHIVES - Security
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Security Want to know if you should really apply the latest kernel patch? Want to know how to configure your firewall? Discuss any Security related topics in here!

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Mar-2008, 20:29
gbrogna
Guest
 
Posts: n/a
Default

Hello all,
I I have a project that demands me to create folders and mount cifs shares to them dynamically thru a web page. I have no problem designing or coding the page (very little problem). I am using the sheell_exec function to mount a cif share the command is <== mount -t cifs -o username=user,password=pwd //10.1.0.151/music /hotsparez/shares/living-room/music ==> and it is being executed but it does not mount the share. I run the same command as root it works. Additionally if I run the php script from the command prompt <== php index.php ==> it works fine. So i am pretty sure that my code is right I think it has to do the wwwrun account is a non priv user.

I guess the options are.
change the wwwrun user to root (not good)
making the wwwrun user a super user (not good)
or some how allowing the wwwrun user to be able to mount share (the best answer I guess)

thanks in advance for your help
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2