LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-27-2007, 06:32 PM   #1
pschoenb
LQ Newbie
 
Registered: Nov 2005
Location: Burgthann, Germany
Distribution: SuSE
Posts: 15

Rep: Reputation: 0
Samba: Problem writing to a group-writable directory


Hi,

my smb.conf looks as follows:

Code:
[global]
	workgroup = ROBUSTSOFT
	server string = Server
	security = SHARE
	map to guest = Bad User
	log level = 0
	printcap name = cups
	add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
	logon path = \\%L\profiles\.msprofile
	logon drive = P:
	logon home = \\%L\%U\.9xprofile
	domain logons = Yes
	os level = 65
	preferred master = Yes
	domain master = Yes
	ldap ssl = no
	create mask = 00
	force create mode = 0644
	directory mask = 00
	force directory mode = 0755
	cups options = raw
	include = /etc/samba/dhcp.conf

[ftp]
	comment = FTP server
	path = /srv/ftp
	force user = ftp
	force group = ftpadmin
	read only = No
	inherit owner = Yes
I have a directory /srv/ftp/pub with user ftp, group ftpadmin und permissions 575. However, I cannot write into it from a Windows SMB client. What could be the problem?
 
Old 02-27-2007, 08:57 PM   #2
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 294

Rep: Reputation: 32
smb.conf

I have this in mine, and it works. Hope it works for you too.

[ftp]
writable= yes
 
Old 02-27-2007, 09:09 PM   #3
pschoenb
LQ Newbie
 
Registered: Nov 2005
Location: Burgthann, Germany
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by guzzi
I have this in mine, and it works. Hope it works for you too.

[ftp]
writable= yes
Unfortunately no. Windows still complains to have no writing permission.
 
Old 02-27-2007, 09:21 PM   #4
pschoenb
LQ Newbie
 
Registered: Nov 2005
Location: Burgthann, Germany
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Lightbulb

Quote:
Originally Posted by pschoenb
Unfortunately no. Windows still complains to have no writing permission.
Ah, tweaking the "pub" directory via the "Security" tab of that folder did the trick.
 
Old 02-28-2007, 08:01 AM   #5
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
I very often use:
chgrp coders /target/repository
chmod 2775 /target/repository

And then in samba:
force group = coders

The combination makes all writes to /target/repository/* automatically be of group 'coders', and thus shared amongst the group.
 
Old 02-28-2007, 06:34 PM   #6
pschoenb
LQ Newbie
 
Registered: Nov 2005
Location: Burgthann, Germany
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pschoenb
Ah, tweaking the "pub" directory via the "Security" tab of that folder did the trick.
Unfortunately, I was too quick. This has set the directory permissions to u+w again, that is why it worked. If I set the permission back to writable by group only, the problem remains.

What to do?
 
  


Reply

Tags
permissions, samba


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
world writable directory? turbo_acura Linux - Software 8 10-17-2009 07:02 AM
anyone know to make samba shares writable? jasybee2000 Linux - Software 4 01-07-2005 08:25 AM
Sendmail Group Writable Directory flipcode Linux - Security 0 12-23-2004 03:41 PM
sendmail world writable directory jbrearley Linux - Software 0 07-01-2004 12:16 PM
permissions question... can I make a directory writable from my user account hindenbergbaby Linux - Newbie 9 10-20-2003 04:42 PM


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

Main Menu
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