View Full Version : Samba
Blue_Gundam2002
05-15-2004, 08:10 PM
How do I start useing Samba? According to Fedora's add/remove programs I have it installed but I can't figure out how to start useing it.
One more thing, my text lloks a little strange, kind of like its blending in with the background or something. Anyone know how to fix that?
DrZaius
05-16-2004, 01:13 AM
Hi Blue_Gundam2002,
Here are some guides I found useful for setting up Samba.
http://www.linux.ie/articles/tutorials/samba.php
http://www.samba.netfirms.com/
Hope this helps.
mairving
05-16-2004, 08:41 AM
Here (http://de.samba.org/samba/docs/man/howto/) is the best howto around.
Blue_Gundam2002
05-16-2004, 12:18 PM
I can't edit the file smb.conf file. It keeps saying I don't have the rights. I try and log in as root in a terminal but I still won't let me.
Blue_Gundam2002
05-16-2004, 02:38 PM
OK, i figured out how to do everything from a terminal as root. I setup the smb.conf file and restarted samba, but windows says its unaccessible.
I used the first guid from ZAIUS
Linux username is rex, the windows computer username is server.
Here is my smb.conf file:
# Global Parameters
workgroup = workgroup
netbios name =Linux
encrypt passwords = yes
[homes]
read only = no
browseable = no
[music]
path = /data/mp3
browseable = yes
write list = rex, server
[everyone]
path = /data/everyone
read only = no
browseable = yes
[apps]
path = /data/apps
browseable = yes
valid users = @admins, root
write list = @admins, root
mairving
05-16-2004, 04:46 PM
The first thing to always do is to look in your log files, usually /var/log/samba/ and see if you can tell anything. Most of the time the logs will give you some hints to the problem. You should also make sure the standard network stuff, that both machines or on the same subnet, have the same workgroup, etc. You also need to check the permissions on your Linux box like so: ls -l /data/apps and see who the owner, group and other is and that they have write access. If the owner is root and the group is root, and other has no permissions, then you need to give them permissions. For instance, on your [music] share, do a chgrp -R users /data/mp3/ (or whatever group there are in) and then do a chmod, chmod -R 770 /data/mp3/.
You also need to remember to stop the smbd daemon every time you make a change to smb.conf. Run testparm to see if there are any problems with it. Also make sure that it is running by [/b]ps -waux[/b].
Blue_Gundam2002
05-16-2004, 05:08 PM
smbd.log:
[2004/05/16 13:22:19, 0] smbd/server.c:main(747)
smbd version 3.0.2-7.FC1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/05/16 13:31:05, 0] smbd/server.c:main(747)
smbd version 3.0.2-7.FC1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/05/16 15:57:33, 0] smbd/server.c:main(747)
smbd version 3.0.2-7.FC1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
mnbd.log:
2004/05/16 13:22:19, 0] nmbd/nmbd.c:main(665)
Netbios nameserver version 3.0.2-7.FC1 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/05/16 13:28:08, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
*****
Samba name server LINUX is now a local master browser for workgroup WORKGROUP$
*****
[2004/05/16 13:31:05, 0] nmbd/nmbd.c:terminate(54)
Got SIGTERM: going down...
[2004/05/16 13:31:05, 0] nmbd/nmbd.c:main(665)
Netbios nameserver version 3.0.2-7.FC1 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/05/16 13:36:54, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
*****
Samba name server LINUX is now a local master browser for workgroup WORKGROUP$
Samba name server LINUX is now a local master browser for workgroup WORKGROUP$
*****
[2004/05/16 15:10:56, 0] nmbd/nmbd.c:terminate(54)
Got SIGTERM: going down...
[2004/05/16 15:57:34, 0] nmbd/nmbd.c:main(665)
Netbios nameserver version 3.0.2-7.FC1 started.
I tried ls -l /data/apps but it says no such file or directory.
I'm also not sure were to check the network settings at, I know I can get online. Its in the right workgroup because windows can see it. But I don't know what my subnet is, I think thats why I couldn't get gentoo to connect whenever I tried to compile it useing a stage1.
Blue_Gundam2002
05-16-2004, 07:10 PM
I think I'm going about this the wrong way. I don't need to access shared files thar are on my linux computer. I need to access a shared folder thats on a windows computer.
mairving
05-17-2004, 08:01 AM
To do that you would use smbclient (http://www.samba.org/samba/docs/man/smbclient.1.html).
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.