Sample Header Ad - 728x90

Samba share on Debian: Can see files from windows but can't write to them

0 votes
3 answers
5571 views
I'm trying to set up a samba share to a computer that only I will have access to. I need full access to this computer from my windows machine. I am the only person using either machine, and I need full read/write access to the share. I tried this so far, and I can SEE the folders/files from my windows machine, but I can't edit any of the files. My code will be on the linux machine, and I will use my windows laptop to code on it. 1. My windows username is just my email, let's call it my_email@gmail.com 2. There is no workgroup (it's just WORKGROUP). 3. My linux installation user is "expert" (ironic, I know) 4. I'm using Debian 9 (stretch). Just installed today from: debian-9.4.0-amd64-netinst.iso. Used KDE. Here is my smb.conf (comments removed, print sections removed) [global] ; wins server = w.x.y.z ; interfaces = 127.0.0.0/8 eth0 ; bind interfaces only = yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d server role = standalone server passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user ########## Domains ########### ; logon path = \\%N\profiles\%U ; logon drive = H: ; logon script = logon.cmd ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u ; add group script = /usr/sbin/addgroup --force-badname %g ############ Misc ############ ; include = /home/samba/etc/smb.conf.%m ; idmap uid = 10000-20000 ; idmap gid = 10000-20000 ; template shell = /bin/bash ; usershare max shares = 100 usershare allow guests = yes #======================= Share Definitions ======================= [homes] comment = Home Directories browseable = no read only = yes create mask = 0700 directory mask = 0700 valid users = %S [Share] comment = Full Access Share path = /home/expert/Projects/expert browseable = yes writable = yes public = yes guest ok = yes read only = no create mask = 0777 directory mask = 0777 write list = 0777 valid users = nobody, admin, expert, anonymous, my_email@gmail.com When I do ls -ld . on the folder where I want to have full access, I get: drwxrwxrwx 3 expert expert 4096 . I thought by giving it create, directory masks and write lists as 0777 I would give full control to Samba. The last line (valid users) was just a shot in the dark from me (didn't work)
Asked by Mormoran (121 rep)
May 1, 2018, 03:06 PM
Last activity: May 16, 2025, 07:06 AM