LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2007, 05:34 AM   #1
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Rep: Reputation: 30
problems with script writing to network share


This has probably been answered adequately elsewhere in the forum, but I can't seem to find the answer I need.

I have a linux server which is set to load 3 windows shares on developer's machines through /etc/fstab with the following options:

//dev1/projects /var/www/dev1/projects smb auto,user,exec,rw,async 0 0

When they load, they've only got write access to the root user. I have a script which updates these shares, but its unable to run as root. chmod/chown'ing the directory with permissions doesn't seem to help.

Is there any way I can get my script to write to these shares?
 
Old 03-21-2007, 11:04 PM   #2
Buto
Member
 
Registered: Sep 2004
Location: So Cal
Distribution: Slackware 12
Posts: 60

Rep: Reputation: 16
Are you able to mount the directories manually and able to write to them? I wonder if the user your using to open these shares have priveleges to write. You may also want to check that the user also has write priveleges to the directory on your windows box. Sometimes I forget that you need to check both the share and ntfs rights to the directory your sharing.
 
Old 03-22-2007, 06:44 AM   #3
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Original Poster
Rep: Reputation: 30
I can mount them if I do "sudo mount -a" and enter the password a few times. without sudo they won't mount. forgot to mention, i'm on Ubuntu/Debian.
 
  


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
writing to a smaba share with apache irvken Linux - General 3 07-08-2005 08:50 AM
writing windows share folder boToo Linux - Newbie 2 06-09-2005 11:30 AM
Problems opening mp3 and movie from a network share? bjs SUSE / openSUSE 0 11-02-2004 11:10 AM
Need Help Writing a Network Script gauge73 Linux - Networking 1 12-15-2003 05:35 PM
writing to /usr/share/pixmaps/backgrounds... Colonel Panic Linux - General 2 09-15-2001 11:34 PM


All times are GMT -5. The time now is 01:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration