Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - angrylance

Pages: [1]
1
Installation and Upgrades / Re: Edit guest account
« on: February 28, 2014, 01:00:33 pm »
bump

2
Installation and Upgrades / Re: Edit guest account
« on: February 27, 2014, 01:05:04 pm »
up

3
Russian / Гостевой доступ SAMBA
« on: February 26, 2014, 03:13:27 pm »
Друзья, не подскажите ли можно ли как-нибудь извернуться так, чтобы для гостевой учетной записи для шары были права read-only?
Перепробовал уже все, что можно. При редактировании строки отвечающей в /usr/share/zentyal/stubs/samba/smb.conf.mas за гостевой доступ, после расшаривания папки получаю в лог ошибки. Вот измененный код конфига:
% foreach my $share (@shares) {
[<% $share->{share} %>]
    comment = <% $share->{comment} %>
    path = <% $share->{path} %>
    browseable = Yes
% if ($share->{guest}) {
    guest ok = yes
    read only = yes
% } else {
    read only = No
    force create mode = 0660
    force directory mode = 0660
% }
 
При расшаривании папки без гостевого доступа сохранение изменений проходит без ошибок,лог даже без варнингов. Но если создавать новую папку или добавлять на существующую папку права гостевого доступа,то при сохранении модуля выдается ошибка,как я и говорил ранее. Лог ошибки оставлю в приложении к посту.

P.S.:И вообще может мне кто-нибудь объяснить, почему для гостевой учетки по дефолту применяются полные права доступа?

4
Installation and Upgrades / Re: Edit guest account
« on: February 25, 2014, 04:25:48 pm »
I have edit not simple smb.conf, but /usr/share/zentyal/stubs/samba/smb.conf.mas.

I have added bold line:
% foreach my $share (@shares) {
[<% $share->{share} %>]
    comment = <% $share->{comment} %>
    path = <% $share->{path} %>
    browseable = Yes
    read only = No
    force create mode = 0660
    force directory mode = 0660
% if ($share->{guest}) {
    guest ok = yes
    read only = yes
% }

Last 50 lines of  zentyal.log I've attached to this post

5
Installation and Upgrades / Re: Edit guest account
« on: February 25, 2014, 03:55:53 pm »
Or maybe you know another way how to fix this problems without changing rights for guest user

6
Installation and Upgrades / Edit guest account
« on: February 25, 2014, 03:53:59 pm »
Hello everybody!

I have a problem with configurating File Sharing and Domain Services module. For my subnet I have a need to create samba share without entering into domain.Share must have read-only rights for guest account and full rights for admins. First step I tried to edit stubs template smb.conf.mas, but when i have added one line here(penult line with read only =yes)):
Code: [Select]
% foreach my $share (@shares) {
[<% $share->{share} %>]
    comment = <% $share->{comment} %>
    path = <% $share->{path} %>
    browseable = Yes
    read only = No
    force create mode = 0660
    force directory mode = 0660
% if ($share->{guest}) {
    guest ok = yes
    read only = yes
% }
after restarting samba module everything was ok. But if I create folder with guest ACL, samba started write errors into log.
Maybe someone know how to fix this problem? I tried to find how edit LDAP accounts in zentyal and change rights for guest there but have failed.

Pages: [1]