[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: samba Passwords

1) As root, run    smbpasswd -a newusername
That will add newusername to the smbpasswd file and set the password for you.

Make sure your /etc/fstab contains a line like this
/dev/hdd      /cdrom  iso9660 defaults,ro,user,noauto         0       0

then make sure theres a section like this in /etc/samba/smb.conf

; A sample share for sharing your CD-ROM with others.
   comment = Samba server's CD-ROM
   writable = no
   locking = no
   path = /cdrom
   public = yes
; The next two parameters show how to auto-mount a CD-ROM when the
;       cdrom share is accesed. For this to work /etc/fstab must contain
;       an entry like this:
;       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
;       /dev/hdd    /cdrom  iso9660 defaults,noauto,ro,user   0 0
; The CD-ROM gets unmounted automatically after the connection to the
; If you don't want to use auto-mounting/unmounting make sure the CD
;       is mounted on /cdrom
   preexec = /bin/mount /cdrom
   postexec = /bin/umount /cdrom

That will automatically mount the cd if a client machine requests it.

3) Samba as a domain controller.

Firstly samba CANNOT act as a PDC for a NT network, neither can it partake in elections as a BDC to an existing NT server.

What samba can do is use an existing NT server to authenticate usernames and passwords from, or it can act as a domain controller for win9x clients (that means not NT or 2000 (not sure about ME))

My suggestion is to look at either buying "Using Samba" by O'Reilly or look at the samba website www.samba.org

At 04:39 PM 7/7/00 -0700, you wrote:
...I have a shared directory that I can access fine but when I try to access the
/home/user directory I am promted for a password. I then enter
the password but it fails. I looked in the smbpasswd file but its
empty. So I tried "smbpasswd neutec" but after entering the pass I
receive an error that it failed to add it. So my first question is
how to add new users to Samba ? And I read somewhere that if I want to
share a CD-Rom I will need to add something to the fstab file. What
do I need to add there ? I cant find the man page on this. And for
my last question, Does anyone know where I can get some info on
setting up Samba as a Domain Controller?


Reply to: