Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ??
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 ?
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.