LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2011, 02:40 AM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
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
 
Old 02-16-2011, 02:44 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

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

Kind regards,

Eric
 
Old 02-16-2011, 02:47 AM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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
 
Old 02-16-2011, 03:05 AM   #4
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
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
 
Old 02-16-2011, 03:08 AM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Glad to see you fixed it. Cheers,

Josh
 
Old 02-16-2011, 03:19 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Great! Well done.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smb.log / smb.conf problem (printcap) on VU+DUO tuner using Samba xlarge Linux - Newbie 0 01-04-2011 05:10 AM
SMB.conf SBN Linux - Networking 2 01-26-2007 02:42 AM
My SMB.CONF SBN Linux - Networking 1 12-28-2006 07:57 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration