No write access to samba share


Grant 128

imagine

  • Kubuntu Desktop 18.04, Tower
  • Lubuntu desktop 18.04, laptop
  • Windows 10, laptop

Kubuntu

[kubuntu_home]
   path = /home/myusername
   available = yes
   valid users = myusername
   read only = no
   browseable = yes
   public = yes
   writable = yes
  • I thought there was a typo on the site, but when I checked on samba.org I found it was .writablewriteable

Lubuntu

$ sudo mount -t cifs -o username=myusername,password=mypassword //192.168.###.###/kubuntu_home /mnt/kubuntu_home

Windows

question

In Lubuntu, I can read the file but not write.

  • In Kubuntu, show ls -l ~files and directories as belonging to myusername myusername.
  • In Lubuntu, show ls -l /mnt/kubuntu_home/all files and folders as belonging to root root.
  • Somewhere along the way, I saw an add force user = myusernameto smb.conf. This didn't make any difference.
  • There is no problem reading/writing from Windows.
Mobius 1

Own the mounted share so it's owned by you, not root.

change this:

$ sudo mount -t cifs -o username=myusername,password=mypassword //192.168.###.###/kubuntu_home /mnt/kubuntu_home

To this:

$ sudo mount -t cifs -o username=myusername,password=mypassword,uid=1000 //192.168.###.###/kubuntu_home /mnt/kubuntu_home

By adding uid =1000 to the options list.

Note: Your uid number may not be 1000 on your Lubuntu machine. To verify that number is running idin a terminal and change the mount command if necessary.

Related


Access to Samba share denied after update

if As of this morning, I cannot access the Samba share on the server. I get an "Access Denied" message, whether from a Windows PC or from an Ubuntu laptop. The share has been working for years without any modification to the smb.conffile . I noticed that the S

Denied access to samba AD share

xq10907 After upgrading centos to 7.4, I can't access my samba share, samba version is upgraded to 4.6.2, I join centos to windows domain via realm command, domain user (in the format username@doaminname) can log in to centos and pass it with Domain user for k

Unable to access Samba share from other subnet

SHLelieveld Thank you for following my issue and working with me to find a solution. I have a samba server on subnet 172.23.3.55/23 (2.0 -> 3.255) and within that subnet I can access the server. Also, the 172.23.4.0/23 subnet, which is on the same core switch,

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

System user write access to the samba share

Bacon Tape For the life of me, I can't figure this out. I have a NAS (Netgear ReadyNAS) that shares open/guest Samba shares. Anonymous access is allowed, with no user restrictions. I can connect and read/write shares via Windows. My Ubuntu server can also moun

Create a Samba share where everyone has write access

Pico I have an Ubuntu server running samba at home. I'm trying to set up a samba share where everyone has read and write access. I have all users in the 'sambashare' UNIX group and want to make the directory /data/shared available to all members of the 'sambas

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest Acce

How to access git repository on Samba share?

Jason Baker I set up a Samba share that I want to put on a git repository. I've tried googling the best way to use git on a Samba share, but since Samba uses git for development, it seems hard to find any way to do this. What's the best way to do this? Right n

Can't access samba share, but visible in network

Bishwanath Das In Windows it asks for username and password, while in Ubuntu it asks for username, domain and password. I entered root and local user passwords and it says "cannot access". #======================= Global Settings ======================= [glob

Can read but not write to Samba share

the_meter413 I'm trying to setup a Samba share that can only be accessed by a specific user. I want this user to have read/write access to all files in the share. The smb.conf file below will allow me to access the share through one user "patrick", but cannot

Access samba3 share via terminal

Kay I have a raspberry pi with samba3 (my external HDD is network accessible) And I have ubuntu14.04 on my laptop. For the script I'm working with, I need to access the HDD through the terminal. I tried some things I found in HKSAR such as: sudo mount -t cifs

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest Acce

A folder does not have write access - Samba share

Matt McCormick I have an external HD mounted in NTFS that can be shared from my router. Here is my fstab entry to mount in Ubuntu: // rt-n66u-8fe8 / data / mnt / rt-n66u-8fe8 / data cifs guest,_netdev,uid = matt,gid = matt,rw,dir_mode = 0777,file_mode = 0666 0

Can read but not write to Samba share

the_meter413 I'm trying to setup a Samba share that can only be accessed by a specific user. I want this user to have read/write access to all files in the share. The smb.conf file below will allow me to access the share through one user "patrick", but cannot

Access Samba share from Windows 10 in VirtualBox

The Balvenie I read many user questions and blogs about this problem, but nothing solves my problem. I have a Linux CENTOS host with a Windows 10 guest installed in VirtualBox. On Linux, there is a user named "myuser" that shares a directory (777) and is regis

No write access to samba share

xilix I have two notebooks on my home network (Notebook 1 with Ubuntu 10.04 and Notebook 2 with Ubuntu 10.10) and I want to share a folder on Notebook 1 with samba. Notebook 2 should be able to read/write/delete the contents of the folder. I installed samba an

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

R - write() file to SAMBA share

Sergio Fernandez I have a file loaded in R that I want to move to a samba share like write(some-file, file = "|smbclient -U user //ip password") It connects to samba, but (I think) the output is "executed" in, smb: \>and I don't want the file to be executed, I

Access to Samba share denied after update

if As of this morning, I cannot access the Samba share on the server. I get an "Access Denied" message, whether from a Windows PC or from an Ubuntu laptop. The share has been working for years without any modification to the smb.conffile . I noticed that the S

Denied access to samba AD share

xq10907 After upgrading centos to 7.4, I can't access my samba share, samba version is upgraded to 4.6.2, I join centos to windows domain via realm command, domain user (in the format username@doaminname) can log in to centos and pass it with Domain user for k

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

Unable to access Samba share from other subnet

SHLelieveld Thank you for following my issue and working with me to find a solution. I have a samba server on subnet 172.23.3.55/23 (2.0 -> 3.255) and within that subnet I can access the server. Also, the 172.23.4.0/23 subnet, which is on the same core switch,

CentOS 7.4 Samba share access denied

Follower I have setup a Samba server on CentOS 7.4 and it should be allowed to work in SELinux. I can successfully access the anonymous share on the root filesystem, but cannot access the directory on the mounted NTFS partition. In Win10, I got You do not have

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest acce

How to access git repository on Samba share?

Jason Baker I set up a Samba share that I want to put on a git repository. I've tried googling the best way to use git on a Samba share, but since Samba uses git for development, it seems hard to find any way to do this. What's the best way to do this? Right n

A folder does not have write access - Samba share

Matt McCormick I have an external HD mounted in NTFS that can be shared from my router. Here is my fstab entry to mount in Ubuntu: // rt-n66u-8fe8 / data / mnt / rt-n66u-8fe8 / data cifs guest,_netdev,uid = matt,gid = matt,rw,dir_mode = 0777,file_mode = 0666 0

No write access to samba share

xilix I have two notebooks on my home network (Notebook 1 with Ubuntu 10.04 and Notebook 2 with Ubuntu 10.10) and I want to share a folder on Notebook 1 with samba. Notebook 2 should be able to read/write/delete the contents of the folder. I installed samba an

R - write() file to SAMBA share

Sergio Fernandez I have a file loaded in R that I want to move to a samba share like write(some-file, file = "|smbclient -U user //ip password") It connects to samba, but (I think) the output is "executed" in, smb: \>and I don't want the file to be executed, I

Denied access to samba AD share

xq10907 After upgrading centos to 7.4, I can't access my samba share, samba version is upgraded to 4.6.2, I join centos to windows domain via realm command, domain user (in the format username@doaminname) can log in to centos and pass it with Domain user for k