Dear The Expert, I am very new with this, I don't understand why my Windows 2000 Prof PC failed when trying to register as member of domain "LINUX".. but I am able to login by using Windows 9x client , below is my /etc/samba/smb.conf I need advise.. thanks a lot in advance [global] workgroup = LINUX server string = Samba Server printcap name = /etc/printcap load printers = yes log file = /var/log/samba/%m.log max log size = 50 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 os level = 65 preferred master = yes domain logons = yes logon script = logon.bat wins support = yes dns proxy = no [homes] comment = Home Directories browseable = no writable = yes [netlogon] comment = Network Logon Service path = /home/netlogon writable = no public = no [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [public] path = /home/public read only = no browsable = yes guest ok = no map archive = yes writable = yes create mask = 0600 directory mask = 0700 *********************** Our outgoing mail has been scanned by MSS. ***********************
Winanjaya, Please see here regarding domain control and membership... http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/samba-pdc.html http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/domain-member.html ...but from a quick glance your smb.conf file seems OK. so then you need to add a machine account. first as a unix account... useradd -c "machine account" -d /dev/null -s /sbin/nologin netbiosname$ (netbiosname$ being the hostname of the windows client with a dollar appended) then as a samba account... smbpasswd -a -m netbiosname (note the dollar is not required here) then add the client to the domain. when asked for an account with permissions to do so use the root account you set up when first configuring samba as a domain controller. apologies if you've done this already and are still experiencing problems, but you weren't particularly verbose in your post so I'm not not sure what stage you're at. if possible then describe what you've actually tried and what errors you're getting. ---- - Message sent via Madasafish Webmail - http://www.madasafish.com/ Up to 8Mb Broadband now from just £11.99 a month
Dear The Expert, I am very new with this, I have configured samba as PDC on my RH 3, now I want to set the quota for each /home/user folder .. could any body pls help me.. thanks a lot in advance Regards Winanjaya *********************** Our outgoing mail has been scanned by MSS. ***********************
204800 / 1024 KBytes = 200MB this is the soft limit. The hard limit is the second number (250MB in this case) This assumes a block size of 1024 Bytes (1KB). The exact numbers may be wrong but you get the picture. You should try to google your way out. Look for example at http://www.linuxnetmag.com/en/issue6/m6quota1.html for more detailed isntructions for suse Winanjaya - PBXSoftwares.com wrote:> You wrote: > setquota USERNAME 204800 256000 0 0 /home > the numbers indicate a 200MB quota. > > where 200MB come from? .. what 204800 used for and what 256000 used for ? > > pls advise > > Thanks a lot in advance > > Regards > Winanjaya > > > > ----- Original Message ----- > From: "Stefanos Karasavvidis" <sk@isc.tuc.gr> > To: "Winanjaya - PBXSoftwares.com" <winanjaya@pbxsoftwares.com> > Sent: Friday, February 03, 2006 4:21 PM > Subject: Re: [Samba] Set quota per user > > >> You must have quota support on your file system >> for debian >> apt-get install quota quotatool >> >> then in your fstab (/etc/fstab) you must enable quota on the file system >> find in this file where your home directory is mounted and add >> usrquota,grpquota >> as parameters >> for example >> /dev/sdb1 /home ext3 defaults,usrquota,grpquota,acl 0 3 >> >> Then, for each user you want to set quota, you have to issue the >> following command >> setquota USERNAME 204800 256000 0 0 /home >> >> the numbers indicate a 200MB quota. See man setquota for details >> >> sk >> >> Winanjaya - PBXSoftwares.com wrote: >>> Dear The Expert, >>> >>> I am very new with this, I have configured samba as PDC on my RH 3, now > I >>> want to set the quota for each /home/user folder .. could any body pls > help >>> me.. >>> >>> thanks a lot in advance >>> >>> Regards >>> Winanjaya >>> >>> >>> >>> >>> *********************** >>> Our outgoing mail has been scanned by MSS. >>> *********************** >>> >> >> *********************** >> Your mail has been scanned by MSS. >> *********************** >> >> > > > *********************** > Our outgoing mail has been scanned by MSS. > *********************** >-- =====================================================================Stefanos Karasavvidis Electronic & Computer Engineer, M.Eng. e-mail : sk@isc.tuc.gr Technical University of Crete, Campus Information Systems Center Address: Akrotiri, Chania, 73100 Tel.: Library Buildings (+30) 28210 37352, (+30) 28210 37355, (+30) 28210 37376 Environmental Engineering Buildings (+30) 28210 37766 Fax: (+30) 28210 37571
winanjaya said... "is it possible to make it automatically add machine name to both unix account and smbpasswd?" I believe so yes. you need to create certain add user scripts on the samba server though. please do read the two chapters I refer to in my previous post. they will explain what you need to do. and as for your question regarding "change password at next logon" I believe the pdbedit command may do what you're looking for... http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#pdbeditthing ---- - Message sent via Madasafish Webmail - http://www.madasafish.com/ Up to 8Mb Broadband now from just £11.99 a month