LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   SAMBa and SWAT (http://www.linuxquestions.org/questions/linux-general-1/samba-and-swat-21052/)

Snake007uk 05-15-2002 04:41 PM

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

Snake007uk 05-16-2002 07:30 AM

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

sewer_monkey 05-16-2002 03:18 PM

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.

Snake007uk 05-16-2002 04:12 PM

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 ??

Snake007uk 05-16-2002 04:55 PM

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

sewer_monkey 05-16-2002 06:58 PM

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!

Snake007uk 05-16-2002 07:05 PM

can u give me a sample smb.conf file that i might be able to work with ??

sewer_monkey 05-16-2002 07:26 PM

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. :p

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


Snake007uk 05-16-2002 07:30 PM

if u use icq or msn can u please give me conatc detail so i can explain more easily ??


All times are GMT -5. The time now is 03:40 AM.