LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   smb.conf regenerate (https://www.linuxquestions.org/questions/linux-software-2/smb-conf-regenerate-862997/)

ted_chou12 02-16-2011 02:40 AM

smb.conf regenerate
 
Hi, I dont know what I made to the smb.conf, it requires password even though i set the security to share. So I decided to delete it and reinstall:
Code:

apt-get --purge remove samba
apt-get install samba

but after i installed samba, i cant find a newly generated samba file, I remembered the first time i installed, it poped up a window for me to enter configurations which does not pop up this time.
I tried to use the help and commands, but it does not generate files:
Code:



Usage: smbd [-?DiFSbV] [-?|--help] [--usage] [-D|--daemon]
        [-i|--interactive] [-F|--foreground] [--no-process-group]
        [-S|--log-stdout] [-b|--build-options] [-p|--port=STRING]
        [-P|--profiling-level=PROFILE_LEVEL] [-d|--debuglevel=DEBUGLEVEL]
        [-s|--configfile=CONFIGFILE] [-l|--log-basename=LOGFILEBASE]
        [-V|--version] [--sbindir=SBINDIR] [--bindir=BINDIR]
        [--swatdir=SWATDIR] [--lmhostsfile=LMHOSTSFILE] [--libdir=LIBDIR]
        [--shlibext=SHLIBEXT] [--lockdir=LOCKDIR] [--piddir=PIDDIR]
        [--smb-passwd-file=SMB_PASSWD_FILE] [--private-dir=PRIVATE_DIR]
sh-3.1# /usr/sbin/smbd -s /etc/smb.conf

Thanks

EricTRA 02-16-2011 02:44 AM

Hello,

Try:
Code:

dpkg-reconfigure samba
as root (or with sudo as user). See if that gets you what you need.

Kind regards,

Eric

corp769 02-16-2011 02:47 AM

Should be located in either /etc/samba/smb.conf or /usr/local/samba/lib/smb.conf

Here is a sample config file for reference:

http://www.reallylinux.com/docs/smb.conf

ted_chou12 02-16-2011 03:05 AM

solved, have to remove the samba common package as well:

sudo apt-get remove samba samba-common --purge

---------- Post added 02-16-11 at 04:06 AM ----------

thanks

corp769 02-16-2011 03:08 AM

Glad to see you fixed it. Cheers,

Josh

EricTRA 02-16-2011 03:19 AM

Hello,

Great! Well done.

Kind regards,

Eric


All times are GMT -5. The time now is 02:20 AM.