LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba install by tar xzvf (https://www.linuxquestions.org/questions/linux-newbie-8/samba-install-by-tar-xzvf-249797/)

wesleywest 11-01-2004 08:01 AM

samba install by tar xzvf
 
so i thought i tried to install something without using apt-get for a change. so i downloaded samba from the samba site

tar xzvf package name

cd source ( of the samba folder )

./configure

make

make install

( i got these steps from a site )

after doing this i thougt it would be right but i can't find anything in /etc/samba
and if i do " locate samba" the only thing he finds are the thing i untarred in the folder where i copied the samba.tar.gz

so what is wrong

bathory 11-01-2004 08:06 AM

By default samba is installed at /usr/local/samba

wesleywest 11-01-2004 08:11 AM

true it installed several maps in the folder /usr/local/samba/

but i cant find smb.conf :S little strange

also i cant seem to start with teh command samba start
from /etc/init.d

bathory 11-01-2004 08:30 AM

A sample smb.conf is in /usr/local/samba/lib. Change it to feet your needs and rename it to smb.conf.
Is that init script right? Because now smbd/nmbd run from /usr/local/samba/bin

wesleywest 11-01-2004 08:34 AM

Quote:

Originally posted by bathory
A sample smb.conf is in /usr/local/samba/lib. Change it to feet your needs and rename it to smb.conf.
Is that init script right? Because now smbd/nmbd run from /usr/local/samba/bin

well i can't seem to find a smb.conf in /usr/local/samba/lib but i could copy 1 from the files i extrected from the tar

plus i tried to start smbd and nmbd from /sbin with ./smdb start
but how can i see there status

thnx for your help btw

bathory 11-01-2004 08:45 AM

It's not that simple to just copy an existing smb.conf and wait for samba to work. You must edit it to define your workgroup, users etc. You can check your config with /usr/local/samba/bin/testparm
To see if smbd/nmbd are running:
Code:

ps aux|grep smbd
pa aux|grep nmbd

To start them:
Code:

/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D

You can make a script with these commands to run at system startup.

wesleywest 11-01-2004 09:01 AM

Quote:

Originally posted by bathory
It's not that simple to just copy an existing smb.conf and wait for samba to work. You must edit it to define your workgroup, users etc. You can check your config with /usr/local/samba/bin/testparm
To see if smbd/nmbd are running:
Code:

ps aux|grep smbd
pa aux|grep nmbd

To start them:
Code:

/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D

You can make a script with these commands to run at system startup.

i get this output

Lexiun:/usr/local/samba/bin# ./testparm
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = LEXIUN
server string = %h server (Samba %v)
security = SHARE
encrypt passwords = No
obey pam restrictions = Yes
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
wins support = Yes
panic action = /usr/share/samba/panic-action %d
invalid users = root

[homes]
comment = testje
path = /wesley
create mask = 0700
directory mask = 0700
guest ok = Yes

[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers




the problem here was that i used to be a redhat user and when you start smbd and nmbd it wil say they are runnig but thnx anway


All times are GMT -5. The time now is 04:57 PM.