LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-03-2003, 08:48 PM   #1
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Rep: Reputation: 15
SAMBA Read/Write permissions


I'm a little stuck here.....I'm accessing a Linux RH 7.3 server from Windows machines, and while I can *see* a folder, and all it's contents, I, or anyone else, can't seem to write to it. The Samba permissions are set so that we all have access to it with 775 privleges. The actual path to the Samba share is in /var/www, so do you think it's an issue within Samba or within the actual permissions on the /var or var/www filesystem? Thanks.
 
Old 11-03-2003, 09:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Post the output of
ls -l /var/www
and the matching section of smb.conf

Cheers,
Tink
 
Old 11-04-2003, 05:22 AM   #3
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Re: SAMBA Read/Write permissions

Quote:
Originally posted by Tenover
I'm a little stuck here.....I'm accessing a Linux RH 7.3 server from Windows machines, and while I can *see* a folder, and all it's contents, I, or anyone else, can't seem to write to it. The Samba permissions are set so that we all have access to it with 775 privleges. The actual path to the Samba share is in /var/www, so do you think it's an issue within Samba or within the actual permissions on the /var or var/www filesystem? Thanks.
Try to add this as extra line in your smb.conf (under where you have made the share available)

writeable = yes

Hope this helps,
 
Old 11-04-2003, 09:14 AM   #4
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Thanks for the replies...I figured it out this morning. The users who could NOT write were not members of the "apache" group, which I'm assuming you need to be in order to write to the <www> folder and subfolders.....As soon as I added them to the apache group, all was good.
 
Old 11-04-2003, 09:19 AM   #5
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Quote:
Originally posted by Tenover
Thanks for the replies...I figured it out this morning. The users who could NOT write were not members of the "apache" group, which I'm assuming you need to be in order to write to the <www> folder and subfolders.....As soon as I added them to the apache group, all was good.
it might be a good idea to make an extra group. It's not a good idea to make users member of the group apache, since apache group is for apache only. Add a group named samba-users or something. And wy are you using /var/www as the samba dir?
 
Old 11-04-2003, 12:45 PM   #6
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Trust me, you don't want to get into it.....But to make a long story short, We use a genetic sequencing database and users need to dump their data into a directory under /var/www/html/mycompany/usersdata so it get's processed via an httpd daemon. I didn't set it up, I'm just trying to maintain it. I'm sure there's other ways to do it, but I'm still learning how to Administer Linux. Thanks again.
 
  


Reply



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
read write permissions petenyce Linux - Newbie 2 09-30-2005 12:53 AM
Samba ignoring read/write permissions? GT3NE1 Linux - Software 0 08-30-2004 05:23 PM
How do I change read/write permissions for a whole directory? Stevetgn Linux - Newbie 8 12-31-2003 07:41 AM
How to set permissions to read, execute, write for users only chupacabra Linux - General 3 12-18-2002 03:54 PM
read and write permissions for /dev/hda1... windows philfighter Linux - Security 3 10-27-2001 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:39 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
Open Source Consulting | Domain Registration