INSTALL SAMBA ON FREEBSD
Posted on 03.30 by Danar Hadinata
By: Danar Hadinata
Options for samba 3.0.7,1[X] LDAP With LDAP support
[X] ADS With Active Directory support
[X] CUPS With CUPS printing support
[X] WINBIND With WinBIND support
[ ] ACL_SUPPORT With ACL support
[ ] SYSLOG With Syslog support
[ ] QUOTAS With Quota support
[X] UTMP With UTMP support
[ ] MSDFS With MSDFS support
[ ] SAM_XML With XML smbpasswd backend
[ ] SAM_MYSQL With MYSQL smbpasswd backend
[ ] SAM_PGSQL With PostgreSQL smbpasswd backend
[ ] SAM_OLD_LDAP With Samba2.x LDAP smbpasswd backend
[ ] PAM_SMBPASS With SMB PAM module
[X] POPT With installed POPT library
AUTOMATED EXTRACTION AND INSTALLATION
Extracting samba-3.0.7,1
Options for gettext:
[X] Examples
[X] HTML
After Samba has been installed, you should see something like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/testprns
/usr/local/bin/smbcquotas
/usr/local/bin/smbcacls
/usr/local/bin/wbinfo
/usr/local/bin/smbtree
/usr/local/bin/smbspool
/usr/local/bin/smbpasswd
/usr/local/bin/testparm
/usr/local/bin/smbcontrol
/usr/local/bin/ntlm_auth
/usr/local/bin/net
This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/samba.sh
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://www.samba.org/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COPY SAMBA CONFIGURATION FILE
/usr/local/etc/
Oddly enough it is called:
smb.conf.default
Also, there is a copy here as well:
/usr/ports/net/samba3/work/samba-3.0.7/examples/smb.conf.default
Since the system needs the file to be named 'smb.conf', let's make a copy:
cd /usr/local/etc/
cp -p smb.conf.default smb.conf
EDIT SAMBA CONFIGURATION FILE
In order for Samba to work we need to edit this file a bit. So, let's fire up Pico:
pico smb.conf
Change from "MYGROUP" to whatever the name your workgroup is.
example:
workgroup = XYZworkgroup
Change the server string to whatever is appropriate. Here are some possibilities:
%h Samba Server
%h-the-FreeBSD-Samba-Server
%h Samba
%h_Samba_File_Server_1
The default line is:
log file = /var/log/samba/log.%m
log file = /var/log/Samba-%m.log
CONFIGURE FOR INDIVIDUAL USER'S LOGIN PATH
========================== Share Definitions ==========================
[homes]
comment = Homes Directories
browseable = no
writable = yes
Let's do the public section. Just below the commented out section called [public] (just before the '# Other examples' section), let's add a public directory that can be read from and written to by all users:
# A publicly accessible directory, that can be read from
# or written to by all valid users.
[public]
comment = %h Shared Public Directory
path = /usr/home/samba/public
force directory mode = 0777
force create mode = 0777
force group = nobody
force user = nobody
public = yes
writeable = yes
read only = no
Save this file, and exit Pico:
Ctrl-O
Press enter
Ctrl-X
/usr/local/bin/testparm | more
create those directories that we referenced just a bit ago:
cd /usr
mkdir home
cd home
mkdir samba
cd samba
mkdir public
cd public
- Let's reboot the computer:
Langganan:
Posting Komentar (Atom)
1 Response to "INSTALL SAMBA ON FREEBSD"
opo ki kang,, gak paham aku,,
Leave A Reply