Originally Posted by frankbell
Is the partition containing the directory you want to share in your /etc/fstab file?
When it's mounted, how does it appear in /etc/mtab? (That may shed light on why you are having difficulties sharing it.)
cat /etc/mtab | grep [partition name]
Many thanks for the help, frankbell,
I've format disk again with gparted (ext4), so I can't write on disk (as usual), so I made:
chmod -R 777 /media/elhtpc/ALMACEN
(The actual name is ALMACEN, not STORE). Now I had access from the local machine to write and create folders.
I try to share a folder (right click, properties, share tab, share with samba, allow guests, everyone: full control, elhtpc:full control), and on Rights tab I set "Ohers: Can view and modify content" and check "Apply to subfolders and its contents".
In this moment the folder get the "shared" icon but I can't access to it from Windows machine. Another important thing is that the values I set on share tab seems to dissapear when I press "accept".
I've try to force all of my samba clients to look like "elhtpc" for the shares. I edit /etc/samba/smb.conf and add "force user = elhtpc" under the workgroup line.
Now I can access to the new shared folder but I have only read rights, not write. If I enter on share tab in folder properties, I set "allow guests, everyone: full control", but when I accept and enter again is changed to "read only".
sudo chown -R elhtpc /media/elhtpc/ALMACEN
But problem persist.
I copy the result of testparm -s
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
force user = elhtpc
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
comment = Printer Drivers
path = /var/lib/samba/printers
This is the output of cat /proc/mounts:
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1833868k,nr_inodes=458467,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=369760k,mode=755 0 0
/dev/disk/by-uuid/928a3979-d26c-4d5a-96bc-7106314f545c / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0
none /sys/fs/pstore pstore rw,relatime 0 0
systemd /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,name=systemd 0 0
/dev/sdb1 /media/elhtpc/ALMACEN ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
result of cat /etc/mtab | grep ALMACEN
/dev/sdb1 /media/elhtpc/ALMACEN ext4 rw,nosuid,nodev,uhelper=udisks2 0 0
┐How to get write access?
Many thanks in advance