Unable to share folder on disk using Samba -Rights problem?-
Hi All,
I've a folder on my user folder that is shared using samba (shared with everyone), and works ok. I've a secondary 2TB disk formatted with ext4, and a folder on it that I want to share. My problem is that as soon as I share it with Samba (shared with everyone) it un-shares itself automatically. I suspect that it's a problem is caused by the rights on this secondary disk. I've use chown to take ownership on the disk: sudo chown -R elhtpc /media/elhtpc/STORE And I've also try chmod: sudo chmod -R 777 /media/elhtpc/STORE Problem persists. How can I share a folder content on this disk? Many thanks in advance |
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.) Code:
cat /etc/mtab | grep [partition name] |
Quote:
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: Code:
chmod -R 777 /media/elhtpc/ALMACEN 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". I've try: Code:
sudo chown -R elhtpc /media/elhtpc/ALMACEN I copy the result of testparm -s Code:
[global] Code:
rootfs / rootfs rw 0 0 Code:
/dev/sdb1 /media/elhtpc/ALMACEN ext4 rw,nosuid,nodev,uhelper=udisks2 0 0 Many thanks in advance |
I've just format the disk using ext3 instead of ext4 and now I can read/write in the disk from the Windows machine.
Am I missing important differentes if I "downgrade" from ext4 to ext3? The disk is going to be used mainly to manage downloads (transmission, jdownloader...) and storing files, films and tv series mainly. Even with this, I would like to use ext4 if is possible in any way. Many thanks in advance. |
All times are GMT -5. The time now is 10:10 PM. |