Автор Тема: Реализация на файл вървър със Самба  (Прочетена 1540 пъти)

simmen

  • Участници
  • ***
  • Публикации: 9
    • Профил
Забил съм се от известно време да се боря и да разуча самба-та. Трябва ми за реализиране на файлов сървър който да ще се използва за архивиране, съхраняване на лични файлове и споделяне на файлове от потребителите в мрежата. Това което искам да реализирам е файлова структура
home
  -user1
    -Backup
    -personal
    -transfer
  -user2
 -Backup
    -personal
    -transfer

Всеки потребител да използва задължително име и парола. Папката Backup да е с пълни права за него и с права само за четене от другите, папката personal да е с никви права за останалите, а в transfer да може всеки потребител да пише и чете от нея. Същите права да се отнасят и за подпапките и файловете който ще се създават в тези папки.

Правата върху тези папки съм ги задал, самба-та съм си я конфигурирал но не постигам желания резултат. Къчен файл от потребител User1 в папка transfer на user2, не може да се коригира от user2.

Моля помогнете, че ми се изчерпаха знанията и се забатачих. '<img'>
Активен

dedmin

  • Напреднали
  • *****
  • Публикации: 456
    • Профил
Реализация на файл вървър със Самба
« Отговор #1 -: Jul 23, 2008, 16:21 »
swat+samba doc
Активен

simmen

  • Участници
  • ***
  • Публикации: 9
    • Профил
Реализация на файл вървър със Самба
« Отговор #2 -: Jul 23, 2008, 22:56 »
Повярвайте ми, не питам за нещо за което не съм изчел документацията и не съм се мъчил да се справя и без да питам. Не искам някой да ми казва цъкни тук, напиши еди ква си команда. Дайте идейно обяснение възможна ли е такава структура с такива права, и ако да как да стане като реализация. Не искам подробно обяснение а 2-3 изречения да се насоча къде бъркам.
Активен

dedmin

  • Напреднали
  • *****
  • Публикации: 456
    • Профил
Реализация на файл вървър със Самба
« Отговор #3 -: Jul 24, 2008, 00:25 »
Цитат
read list (S)

This is a list of users that are given read-only access to a service. If the connecting user is in this list then they will not be given write access, no matter what the read only option is set to. The list can include group names using the syntax described in the invalid users parameter.

This parameter will not work with the security = share in Samba 3.0. This is by design.

Default: read list =

Example: read list = mary, @students


Цитат
write list (S)

This is a list of users that are given read-write access to a service. If the connecting user is in this list then they will be given write access, no matter what the read only option is set to. The list can include group names using the @group syntax.

Note that if a user is in both the read list and the write list then they will be given write access.

By design, this parameter will not work with the security = share in Samba 3.0.

Default: write list =

Example: write list = admin, root, @staff


Цитат
force user (S)

This specifies a UNIX user name that will be assigned as the default user for all users connecting to this service. This is useful for sharing files. You should also use it carefully as using it incorrectly can cause security problems.

This user name only gets used once a connection is established. Thus clients still need to connect as a valid user and supply a valid password. Once connected, all file operations will be performed as the "forced user", no matter what username the client connected as. This can be very useful.

In Samba 2.0.5 and above this parameter also causes the primary group of the forced user to be used as the primary group for all file activity. Prior to 2.0.5 the primary group was left as the primary group of the connecting user (this was a bug).

Default: force user =

Example: force user = auser


Цитат
force group (S)

This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service. This is useful for sharing files by ensuring that all access to files on service will use the named group for their permissions checking. Thus, by assigning permissions for this group to the files and directories within this service the Samba administrator can restrict or allow sharing of these files.

In Samba 2.0.5 and above this parameter has extended functionality in the following way. If the group name listed here has a '+' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group. This gives a finer granularity of ownership assignment. For example, the setting force group = +sys means that only users who are already in group sys will have their default primary group assigned to sys when accessing this Samba share. All other users will retain their ordinary primary group.

If the force user parameter is also set the group specified in force group will override the primary group set in force user.

Default: force group =

Example: force group = agroup
Активен

dedmin

  • Напреднали
  • *****
  • Публикации: 456
    • Профил
Реализация на файл вървър със Самба
« Отговор #4 -: Jul 24, 2008, 00:27 »
Трябваше да дадеш smb.conf и ls -all на споделените папки.
Активен

simmen

  • Участници
  • ***
  • Публикации: 9
    • Профил
Реализация на файл вървър със Самба
« Отговор #5 -: Jul 24, 2008, 12:20 »
Мерси много, това ми стига. Оправих се днеска, но се наложи да променя малко структурата на директориите които исках, така както ги исках няма как да се получи. Сега всичко е наред.
Активен