Re[2]: [samba] samba - что-то с ней
Playnet
playnet на mail.ru
Чт Июн 16 23:39:13 MSD 2005
Здравствуйте, Amrenov.
Вы писали 16 июня 2005 г., 13:51:37:
AK> Vitaly Gorshkov wrote:
>>AK> а конфиг показать ?
>>
>>было load printers = yes, поставил load printers = no, вроде все то
>>же, а Webmin пишет
>>Нарушения управления правами : Ошибка /etc/rc.d/init.d/smb start
>>
>>сам файлик:
>>
>>[global]
>> log file = /var/log/samba/log.%m
>> smb passwd file = /etc/samba/smbpasswd
>> load printers = no
>> socket options = TCP_NODELAY
>> encrypt passwords = yes
>> dns proxy = no
>> netbios name = linux2_1
>> server string = Samba server on %h (v. %v)
>> printing = cups
>> default = global
>> workgroup = xprint
>> use sendfile = yes
>> os level = 65
>> auto services = homes
>> printcap name = cups
>> security = user
>> max log size = 50
>>
>>[homes]
>> comment = Home Directory for '%u'
>> browseable = no
>> writable = yes
>># Un-comment the following and create the netlogon directory for Domain Logons
>>; [netlogon]
>>; comment = Network Logon Service
>>; path = /var/lib/samba/netlogon
>>; guest ok = yes
>>; writable = no
>>
>>#Uncomment the following 2 lines if you would like your login scripts to
>>#be created dynamically by ntlogon (check that you have it in the correct
>>#location (the default of the ntlogon rpm available in contribs)
>>;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon
>>;root postexec = rm -f /var/lib/samba/netlogon/%U.bat
>>
>># Un-comment the following to provide a specific roving profile share
>># the default is to use the user's home directory
>>;[Profiles]
>>; path = /var/lib/samba/profiles
>>; browseable = no
>>; guest ok = yes
>>
>>
>># NOTE: If you have a CUPS print system there is no need to
>># specifically define each individual printer.
>># You must configure the samba printers with the appropriate Windows
>># drivers on your Windows clients. On the Samba server no filtering is
>># done. If you wish that the server provides the driver and the clients
>># send PostScript ("Generic PostScript Printer" under Windows), you have
>># to swap the 'print command' line below with the commented one.
>>;[printers]
>>; comment = All Printers
>>; path = /var/spool/samba
>>; browseable = no
>># to allow user 'guest account' to print.
>>; guest ok = yes
>>; writable = no
>>; printable = yes
>>; create mode = 0700
>># =====================================
>># print command: see above for details.
>># =====================================
>>; print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
>>;; print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
>># The following two commands are the samba defaults for printing=cups
>># change them only if you need different options:
>>; lpq command = lpq -P %p
>>; lprm command = cancel %p-%j
>>
>># This share is used for Windows NT-style point-and-print support.
>># To be able to install drivers, you need to be either root, or listed
>># in the printer admin parameter above. Note that you also need write access
>># to the directory and share definition to be able to upload the drivers.
>># For more information on this, please see the Printing Support Section of
>># /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
>>;[print$]
>>; path = /var/lib/samba/printers
>>; browseable = yes
>>; read only = yes
>>; write list = @adm root
>># This share is used for Windows NT-style point-and-print support.
>># To be able to install drivers, you need to be either root, or listed
>># in the printer admin parameter above. Note that you also need write access
>># to the directory and share definition to be able to upload the drivers.
>># For more information on this, please see the Printing Support Section of
>># /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
>>;[print$]
>>; path = /var/lib/samba/printers
>>; browseable = yes
>>; read only = yes
>>; write list = @adm root
>>
>># This is 'a must' when you'd like to support quotas on your shares.
>># Quotas are set up per mount point and can be changed from Win2K/XP/2K3
>># Explorer's share 'properties' dialog when browsing the share as Domain Admin.
>># Quotas are supported and tested on Ext2/3 and XFS file systems.
>># It is important to represent mount point as 'drive' share (C$/D$/etc)
>># otherwise Win2K/XP/2K3 would not issue proper RPC calls.
>># Note also that domain separator should be exact as set above for winbind
>>;[C$]
>>; comment = Administrative share for homes
>>; path = /home
>>; admin users = @"DOMAIN\\Domain Admins"
>>; valid users = @"DOMAIN\\Domain Admins"
>>; writable = yes
>>
>># This one is useful for people to share files
>>;[tmp]
>>; comment = Temporary file space
>>; path = /tmp
>>; read only = no
>>; public = yes
>>
>># A publicly accessible directory, but read only, except for people in
>># the "staff" group
>>;[public]
>>; comment = Public Stuff
>>; path = /home/samba/public
>>; public = yes
>>; writable = no
>>; write list = @staff
>>
>># Other examples.
>>#
>># A private printer, usable only by Fred. Spool data will be placed in Fred's
>># home directory. Note that fred must have write access to the spool directory,
>># wherever it is.
>>;[fredsprn]
>>; comment = Fred's Printer
>>; valid users = fred
>>; path = /homes/fred
>>; printer = freds_printer
>>; public = no
>>; writable = no
>>; printable = yes
>>
>># A private directory, usable only by Fred. Note that Fred requires write
>># access to the directory.
>>;[fredsdir]
>>; comment = Fred's Service
>>; path = /usr/somewhere/private
>>; valid users = fred
>>; public = no
>>; writable = yes
>>; printable = no
>>
>># a service which has a different directory for each machine that connects
>># this allows you to tailor configurations to incoming machines. You could
>># also use the %u option to tailor it by user name.
>># The %m gets replaced with the machine name that is connecting.
>>;[pchome]
>>; comment = PC Directories
>>; path = /usr/pc/%m
>>; public = no
>>; writable = yes
>>
>># A publicly accessible directory, read/write to all users. Note that all files
>># created in the directory by users will be owned by the default user, so
>># any user with access can delete any other user's files. Obviously this
>># directory must be writable by the default user. Another user could of course
>># be specified, in which case all files would be owned by that user instead.
>>;[public]
>>; path = /usr/somewhere/else/public
>>; public = yes
>>; only guest = yes
>>; writable = yes
>>; printable = no
>>
>># The following two entries demonstrate how to share a directory so that two
>># users can place files there that will be owned by the specific users. In this
>># setup, the directory should be writable by both users and should have the
>># sticky bit set on it to prevent abuse. Obviously this could be extended to
>># as many users as required.
>>;[myshare]
>>; comment = Mary's and Fred's stuff
>>; path = /usr/somewhere/shared
>>; valid users = mary fred
>>; public = no
>>; writable = yes
>>; printable = no
>>; create mask = 0765
>>
>>
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Samba mailing list
>>Samba на altlinux.ru
>>https://lists.altlinux.ru/mailman/listinfo/samba
>>
>>
AK> попробуй создать те дириктории на отсутствие которых ругается самба
А не вырезать весь текст ради 1 строки? Не все сидят на анлимной
выделенке, я за траф плачу. Да и неудобно читать "такое"...
Модератора бы сюда... и за оверквотинг...
--
С уважением,
Playnet mailto:playnet на mail.ru
Подробная информация о списке рассылки Samba