Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba: Cant write
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
René1983
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2003
Posts: 108
Location: Netherlands

PostPosted: Sat Oct 06, 2007 1:58 pm    Post subject: Samba: Cant write Reply with quote

Im trying to do some filesharing using Samba.

When I copy some folders from my laptop to my samba-server I can only create the first folder. Samba creates this folder with owner and group root. So I cant write to that folder anymore. I can copy everything with root and change the owner, but its not the solution. It looks like I mount as a normal user, but write as root. What do I have to do to get it to work?

I disabled my clamav because it made it impossible to open any kind of file.

Here's my smb.conf:
Code:
[global]
# Replace MYWORKGROUPNAME with your workgroup/domain
workgroup = illumination
# Of course this has no REAL purpose other than letting
# everyone knows it's not Windows!
# %v prints the version of Samba we are using.
server string = Samba Server %v
# We are going to use cups, so we are going to put it in here ;-)
printcap name = cups
printing = cups
load printers = yes
# We want a log file and we do not want it to get bigger than 50kb.
log file = /var/log/samba/log.%m
max log size = 50
# We are going to set some options for our interfaces...
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# This is a good idea, what we are doing is binding the
# samba server to our local network.
# For example, if eth0 is our local network device
interfaces = lo eth0
bind interfaces only = yes
# Now we are going to specify who we allow, we are afterall
# very security conscience, since this configuration does
# not use passwords!
hosts allow = 127.0.0.1 192.168.2.0/24
hosts deny = 0.0.0.0/0
# Other options for this are USER, DOMAIN, ADS, and SERVER
# The default is user
security = share
# No passwords, so we're going to use a guest account!
guest ok = yes
# We now will implement the on access virus scanner.
# NOTE: By putting this in our [Global] section, we enable
# scanning of ALL shares, you could optionally move
# these to a specific share and only scan it.

# For Samba 3.x. This enables ClamAV on access scanning.
#vfs object = vscan-clamav
#vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

# Now we setup our print drivers information!
[print$]
comment = Printer Drivers
path = /etc/samba/printer # this path holds the driver structure
guest ok = yes
browseable = yes
read only = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
write list = root

# Now we'll setup a printer to share, while the name is arbitrary
# it should be consistent throughout Samba and CUPS!
[HPDeskJet840C]
comment = HP DeskJet 840C Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = root

# Now we setup our printers share.  This should be
# browseable, printable, public.
[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = root

# We create a new share that we can read/write to from anywhere
# This is kind of like a public temp share, anyone can do what
# they want here.
[projecten]
comment = Projecten
browseable = yes
writeable = yes
public = yes
create mode = 0766
guest ok = yes
path = /home/projecten

[prive]
comment = Mailfiles
browseable = yes
writeable = yes
public = yes
create mode = 0766
guest ok = yes
path = /home/prive
Back to top
View user's profile Send private message
barbar
Guru
Guru


Joined: 16 Apr 2003
Posts: 397
Location: Austria

PostPosted: Sun Oct 07, 2007 1:45 pm    Post subject: Reply with quote

Try
Code:
guest account = $USER
in your [projecten] section where $USER is a valid user on your samba server.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum