Solution to: Can't write on Samba-shared ext3 or ext4 disk

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
Wild Rat
Posts: 40
Joined: Fri Feb 17, 2012 9:43 pm

Solution to: Can't write on Samba-shared ext3 or ext4 disk

Post by Wild Rat »

When i attach my usb disk (ext3 or ext4 formated) to router and enable CIFS sharing, then on my Windows computer i can't write anything on this shared disk.

Solution: in file /etc/samba/smb.conf.template
change

Code: Select all

	guest account = nobody
to

Code: Select all

	guest account = root

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Solution to: Can't write on Samba-shared ext3 or ext4 di

Post by DoesItMatter »

Good quick fix

Bad Idea if many people use the device

If only you are on it - go for it

It's never recommended to use "root" in access policies
but as long as its just you, yea go for it - nice quick solution!
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

Wild Rat
Posts: 40
Joined: Fri Feb 17, 2012 9:43 pm

Re: Solution to: Can't write on Samba-shared ext3 or ext4 di

Post by Wild Rat »

What other users are in the default gargoyle system? Because the disk is mounted with the rights of 777, we may create some other user and use him in this line.

Hoodoos
Posts: 2
Joined: Tue Mar 27, 2012 1:39 pm

Re: Solution to: Can't write on Samba-shared ext3 or ext4 di

Post by Hoodoos »

I was having poor write and read access speeds on the USB drive formatted using NTFS connected to a WNDR3700v1 router using Gargoyle 1.54. It was suggested in the forums that EXT3 or EXT4 would work better. I reformatted the drive to EXT4 from the Gargoyle web interface. It sped up, but I lost the ability to write to the disk from Windows. After trying a number of solutions (including adjusting the settings in the Gargoyle interface), I tried reformatting it to EXT3 from my Buffalo LinkStation drive. That solved the write access problem, and gave by far the fastest read/write speeds.

I think there may be a bug in the EXT4 formatting settings in Gargoyle that causes the loss of write access from Windows.

Post Reply