LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-07-2006, 11:08 AM   #1
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
Samba 3.x file permissions on Windows share


We're trying to write a php script which will create directories and files on a smbmount share in a Windows 2003 server. Any commands that we use to mount the Windows share result in 755 permissions, but we need the script (running as user 'www-data') to be able to create these dirs and files.

We've tried:
smbmount /dir /dir -o uid=www-data gid=www-data

but the uid and gid aren't being accepted (just being ignored). We tried adding "unix extensions = no" in the smb.conf file but that also seems to be ignored.

At this time the best we can figure is to set 'umask=000' before mounting the drive, but it leaves too many permissions open, and the remote share is still being owned by root.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions on windows file share outtacontrol Linux - Networking 1 03-24-2006 07:07 PM
Preserve file permissions when copying from NTFS to a Samba share? somedude Linux - Software 4 06-11-2004 10:20 AM
samba windows share file size limit Axion Linux - Software 2 04-04-2004 03:20 PM
samba file share with windows users Peds222 Linux - Software 6 08-22-2003 01:07 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 05:42 PM


All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration