×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Windows Networking

Howto install and config samba by OpenBsdRulez
Posted: 20 Sep 03

###################samba windows networking ################

# cd /usr/ports/net/samba && make install clean
 
=> turn on samba  in /etc/rc.conf.local

# vi /etc/rc.conf.local
smbd=YES
nmbd=YES

# vi /etc/rc.local
 
(put this in rc.local)
if [ -f /etc/samba/smb.conf ]; then
   if [ X"${smbd}" = X"YES" -a -x /usr/local/libexec/smbd ]; then
      echo -n ' smbd';    /usr/local/libexec/smbd -D
   fi
 
   if [ X"${nmbd}" = X"YES" -a -x /usr/local/libexec/nmbd ]; then
      echo -n ' nmbd';    /usr/local/libexec/nmbd -D
   fi
fi
 
(end of file)

# cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
# vi /etc/samba/smb.conf
(Use dd to delete everything and just put)
(This worked for me you have the backup for all the info in the file)
 
[global]
   workgroup = PING
   server string = Samba Server
   hosts allow = 192.168.0.  127.0.0.1
   log file = /var/log/smbd.%m
   max log size = 50
   security = user
   os level = 20
   dns proxy = no
   encrypt passwords = yes
   load printers = no


[myshare]
   comment = Music stuff
   path = /share
   valid users = user user2 user3
   public = yes
   writable = yes
   printable = no
   browseable = yes
   create mask = 0765

(end of file)

=> add users :
 
# smbpasswd -a user
 
=> give good rights to the dir:
# chown -R user:user /share
# chmod 700 -R /share
 
=> start:
 
# /usr/local/libexec/smbd -D
# /usr/local/libexec/nmbd -D
 
=> up and running

Back to Linux (server) FAQ Index
Back to Linux (server) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close