LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2003, 10:58 AM   #1
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Rep: Reputation: 30
samba


some simple samba questions:

1> can anyone post a simple samba file with sharing home directory
i have a book about this and i have an configuration file
but i want to see another one so that i can copy what i need

2> does samba start automaticly at startup?? (i use slackware)

cheers

erling
 
Old 06-02-2003, 11:35 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Just add something like this in your share portion of the configuration file:
Code:
[public]
   comment = Public Directory
   path = /path/to/shared/directory
   valid users = user1 user2
   public = yes
   writable = yes
   printable = no
   create mask = 0765
And depending on if you have guest accounts setup you can modify accordingly as to not have valid users.. with something like this:
Code:
[public2]
   path = /path/to/shared/directory
   public = yes
   only guest = yes
   writable = yes
   printable = no
And no, in Slackware usually Samba will not start automatically. The easiest way is to just uncomment the appropiate entires in your /etc/inetd.conf file that will look like this:
Code:
# These are to start Samba, an smb server that can export filesystems to
# Pathworks, Lanmanager for DOS, Windows for Workgroups, Windows95, Lanmanager
# for Windows, Lanmanager for OS/2, Windows NT, etc.
# If you're running smbd and nmbd as daemons in /etc/rc.d/rc.samba, then you
# shouldn't uncomment these lines.
netbios-ssn    stream  tcp     nowait  root    /usr/sbin/smbd  smbd
netbios-ns     dgram   udp     wait    root    /usr/sbin/nmbd  nmbd
Or you can just add a script to whatever runlevel you startup to in /etc/rc.d to start these processes and daemons.
 
Old 06-02-2003, 11:40 AM   #3
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
ok thx
 
Old 06-02-2003, 11:43 AM   #4
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
what about the global thing here is my smb.conf file
Code:
[global] 
workgroup = Workgroup
guest account = guest
map to guest = Bad Password
smb passwd file = /etc/smbpasswd
null passwords = Yes
hosts allow = 192.168.2.1 127.0.0.1
interfaces = 10.0.0.1/40 , 192.168.2.0/40
comment = %h Running - Slackware linux 9.0 + samba %v
is there any tjing that i should change

Last edited by killi; 06-02-2003 at 11:45 AM.
 
Old 06-02-2003, 11:48 AM   #5
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
and how do i share
 
Old 06-02-2003, 12:27 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by killi
and how do i share
What do you mean? That's what your doing by adding those shares I mentioned before, you should see them in your Network Neighborhood after starting samba.. etc.

And your Global section seems ok.. and remember if your not setting up a guest account so anyone can access the shares you need to create users by using the smbpasswd command, example:

smbpasswd -a user1
 
Old 06-02-2003, 01:35 PM   #7
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
Code:
root@Iluvatar:/home/erling#smbpasswd -a user1
New SMB password:
Retype new SMB password:
User user1 does not exist in system password file (usually /etc/passwd). Cannot add account without a valid local system user.
Failed to modify password entry for user user1
what does this say???
should i add user1 in /etc/passwd
 
Old 06-02-2003, 01:37 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
yeah, if your specifying the passwd file in your smb.conf as /etc/passwd, when setting the passwords, the users have to be existing users..
 
Old 06-02-2003, 01:39 PM   #9
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
ok but what to do with guest is that made by itself
 
  


Reply



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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 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