[Samba] read only share problem
Danilo Moretto
danilomoretto at cantv.net
Sat Jan 13 06:00:59 GMT 2007
Felipe Augusto van de Wiel escribió:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 01/11/2007 02:22 PM, danilomoretto at cantv.net escreveu:
>
>> HI,
>> I have setup a samba share called DATOS it look like this:
>>
>> [DATOS]
>> path = /data/datos
>> comment = QAQC y SHA
>> locking = no
>> admin users = zulloa2
>> write list = @qaqc, zulloa2
>> browseable = yes
>> public = yes
>> guest ok = yes
>> force create mode = 775
>> force directory mode = 775
>> read only = yes
>> force group = qaqc
>>
>
> Your share is a little bit "messy". You have
> "public" and "guest ok", they are synonyms, you only
> need one of them.
>
> Besides that, it seems to have the configuration
> that you are imagining, a read only directory which a
> few people are able to write.
>
>
>
>> in linux debian samba Version 3.0.14a-Debian
>>
>> it work good, opening the documents read only for every
>> one, and can write with the user zulloa2 or the users in
>> sha group.
>>
>> The problem is, some time some files in this share appear
>> in read only mode for the user zulloa2...
>>
>
> In a hard guess I would say that you have problems
> with your filesystem permissions.
>
>
>
>> all the files in the share are in 775
>> this is the smbstatus when the file appear in readonly
>> tipecasrv:~# smbstatus -u zulloa2
>> Samba version 3.0.14a-Debian
>> PID Username Group Machine
>> -------------------------------------------------------------------
>> 14974 zulloa2 zulloa2 sha (192.168.0.3)
>>
>> Service pid machine Connected at
>> -------------------------------------------------------
>> DATOS 14974 sha Thu Jan 11 07:01:38 2007
>> PUBLICO 14974 sha Thu Jan 11 07:01:38 2007
>> IPC$ 14974 sha Thu Jan 11 12:12:01 2007
>> GESTION 14974 sha Thu Jan 11 07:01:38 2007
>> CALIDADySHA 14974 sha Thu Jan 11 07:01:38 2007
>>
>> Locked files:
>> Pid DenyMode Access R/W Oplock Name
>> --------------------------------------------------------------
>> 14974 DENY_WRITE 0x20089 RDONLY NONE
>> /data/datos/QAQC/CONTINUACION.ppt Thu Jan 11 11:41:02 2007
>> 14974 DENY_NONE 0x2019f RDWR EXCLUSIVE+BATCH
>> /data/datos/QAQC/ITOPMT.doc Thu Jan 11 12:13:06 2007
>> 14974 DENY_WRITE 0x20089 RDONLY NONE
>> /data/datos/QAQC/PGT.doc Thu Jan 11 12:00:32 2007
>> 14974 DENY_WRITE 0x20089 RDONLY NONE
>> /data/datos/QAQC/Copia de SISTEMA QAQC.pps Thu Jan 11 11:40:57 2007
>>
>
> Can you send a full smbstatus, with logs of the
> access from the user?
>
>
>
>
>> look that not all the files appears read only.... but is the same share an
>> folder...????
>>
>
> Investigate the filesystem permissions.
>
> There are more users accessing this share?
>
>
>
>> what happend? how can i do ?
>>
>> when i do a /etc/init.d/samba restart
>> so i can write them with zulloa2 user, but hours later the read only show
>> again...
>>
>> Thanks
>>
>
>
> Kind regards,
>
> - --
> Felipe Augusto van de Wiel <felipe at paranacidade.org.br>
> Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
> http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
>
> iD8DBQFFqCd5Cj65ZxU4gPQRAuBdAJ94cR8mtP6T8+w+sIe26MCrKEvMZgCffQZr
> RRGiF43kEuaIHl0bLzMHjJM=
> =8fKN
> -----END PGP SIGNATURE-----
>
mister as you can see
the file premission are set trhought samba:
force create mode = 775
force directory mode = 775
force group = qaqc
Sooooo all the share, i mean chmod -R 775 /data/datos
and, chown -R root:sha /data/datos/
are set up with 755 permissions with sha group as write enabled
read all please
thanks
More information about the samba
mailing list