LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-15-2002, 04:41 PM   #1
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Rep: Reputation: 15
SAMBa and SWAT


ok guyz i need your help again !


i have used swat to make the smb.conf file for me and everything is fine i can even get win2k to get the computer name etc.. but it still doesnt show any folders that i can map as drives can any one please explain why ??

Snake
 
Old 05-16-2002, 07:30 AM   #2
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
come on guyz somebody must be able to help ??

i can see the computer its called Apocolypse ok i can see it when i got to map the drive i just cant see the folders that i have shaed on the linux box ?

do u have remount the folders/filesystem ??

please can some one help!!1


Snake
 
Old 05-16-2002, 03:18 PM   #3
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Trust me, forget SWAT, read the smb.conf man page (either on your system or on http://www.samba.org/samba/docs/). I tried both WEBMIN and SWAT, and I think they both suck. Edit smb.conf directly, at least you'll know what's going on.

I had all sorts of weird problems (including browsing problems) when I used SWAT/WEBMIN for configuring SAMBA, but then I got fed up and decided to write my own smb.conf from scratch, and it worked like a charm.

Last edited by sewer_monkey; 05-16-2002 at 03:20 PM.
 
Old 05-16-2002, 04:12 PM   #4
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
ok lets say i create my own file ok do i have to mpount the folders/partiton etc.. that i sher eetc.. ?? or just run smb daemon and thats it ??
 
Old 05-16-2002, 04:55 PM   #5
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
ok this is my configuratiomn i written my self but this time i cant even see the Computer in Win2k

here is the file


# Global parameters
[global]
workgroup = Workgroup
server string = Apocolypse
hosts allow = ########
os level = 33
domain master = yes
preferred master = yes


[ftp]
comment = FTP drive
path = /home/ftp
valid users = ######f
public = no
writable = yes


[mp3]
comment = MP3 drive
path = /home/mp3
valid users = #######
public = no
writable = yes


[downloads]
comment = downloads drive
path = /home/downloads
valid users = ######
public = no
writable = yes

Last edited by Snake007uk; 05-16-2002 at 04:56 PM.
 
Old 05-16-2002, 06:58 PM   #6
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
Originally posted by Snake007uk
ok lets say i create my own file ok do i have to mpount the folders/partiton etc.. that i sher eetc.. ?? or just run smb daemon and thats it ??
That's the general idea.

If having problems, try relaxing the security restrictions and accessing samba shares without them as a test, then implement and test the security restrictions one by one.

Also, do not forget that samba has its own password file, so when you say "allowed users", you're referring to samba users, not UNIX users in /etc/passwd.

If you're having problems browsing the network neighbourhood, set preferred master to "no". And don't mess with the os level setting, unless absolutely necessary.

Quote:
From http://va.samba.org/samba/docs/man/s...5.html#OSLEVEL

Note: By default, Samba will win a local master browsing election over all Microsoft operating systems except a Windows NT 4.0/2000 Domain Controller. This means that a misconfigured Samba host can effectively isolate a subnet for browsing purposes. See BROWSING.txt in the Samba docs/ directory for details.
Good luck!

Last edited by sewer_monkey; 05-16-2002 at 07:04 PM.
 
Old 05-16-2002, 07:05 PM   #7
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
can u give me a sample smb.conf file that i might be able to work with ??
 
Old 05-16-2002, 07:26 PM   #8
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
Originally posted by Snake007uk
can u give me a sample smb.conf file that i might be able to work with ??
OK, here's sample smb.conf (it's derived from my own experimental smb.conf, but with some modifications). There are also sample conf files on www.samba.org (in the documentation section). Don't just copy paste it, try to research the options there using the man pages, and seeing what each option does and how it impacts SAMBA. LOL, I'm trying to turn you into a sysadmin here.

Code:
[global]
        smb passwd file = /etc/samba/smbpasswd
        auto services = global public cdrom
        dns proxy = no
        encrypt passwords = yes
        printcap name = /etc/printcap
        wins support = true
        preferred master = no
        security = user
        workgroup = HOME_NET
        server string = HomeNet Samba Server
        netbios name = einstein
        log file = /var/log/samba/%m.log
        load printers = yes
        username map = /etc/samba/user.map
        default = public
        time server = yes
        time offset = -300

[homes]
        path = /home/%U/pc
        writable = yes
        browseable = no
        create mode = 0664
        directory mode = 0775
        preserve case = yes
        valid users = %S
        comment = Home Directories
        case sensitive = no

[public]
        path = /usr/pub/samba
        writable = yes
        create mode = 0664
        directory mode = 0775
        preserve case = yes
        map hidden = no
        comment = Public Stuff
        printable = no
        invalid users = root
        public = yes
        case sensitive = no
        guest ok = yes

[cdrom]
        path = /mnt/cdrom
        writable = no
        preserve case = yes
        map hidden = no
        printable = no
        invalid users = root
        public = yes
        case sensitive = no
 
Old 05-16-2002, 07:30 PM   #9
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
if u use icq or msn can u please give me conatc detail so i can explain more easily ??
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Samba/SWAT driesel Linux - Newbie 3 02-13-2005 09:33 AM
Samba + SWAT mooler Linux - Networking 5 11-13-2003 09:46 AM
Samba and swat james.farrow Linux - Networking 7 04-04-2003 11:27 AM
Swat Samba whatever! theguy311 Linux - Software 8 01-25-2003 01:42 PM
samba swat has me chens_83 Linux - General 2 03-22-2002 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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