Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-15-2004, 08:10 PM   #1
Member (11 bit)
 
Blue_Gundam2002's Avatar
 
Join Date: May 2003
Location: Houston, Texas
Posts: 1,340
Send a message via AIM to Blue_Gundam2002 Send a message via Yahoo to Blue_Gundam2002
Samba

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?
__________________
Main: ASUS P5k SE/Core 2 Duo E6550/4x1024mb DDR2 800
GeForce 8600 GT 256MB/WD 36.7GB Raptor - WD 320GB x2 - WD - 750GB x2 - WD 640GB

Laptop: Acer Aspire One AOA150
945GSE/Atom N270/1024mb DDR2 533/8.9" WSVGA/120GB HDD/2.3 lbs.

HTPC: Shuttle K48
945GC/Pentium E2180/2x1024mb DDR2 800/80GB HDD/Vizio V37L 37" LCD 1080i


Join us in the pcmech irc channel on undernet #Pcmech.
Blue_Gundam2002 is offline   Reply With Quote
Old 05-16-2004, 01:13 AM   #2
Member (13 bit)
 
DrZaius's Avatar
 
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
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.
DrZaius is offline   Reply With Quote
Old 05-16-2004, 08:41 AM   #3
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Here is the best howto around.
mairving is offline   Reply With Quote
Old 05-16-2004, 12:18 PM   #4
Member (11 bit)
 
Blue_Gundam2002's Avatar
 
Join Date: May 2003
Location: Houston, Texas
Posts: 1,340
Send a message via AIM to Blue_Gundam2002 Send a message via Yahoo to Blue_Gundam2002
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 is offline   Reply With Quote
Old 05-16-2004, 02:38 PM   #5
Member (11 bit)
 
Blue_Gundam2002's Avatar
 
Join Date: May 2003
Location: Houston, Texas
Posts: 1,340
Send a message via AIM to Blue_Gundam2002 Send a message via Yahoo to Blue_Gundam2002
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
Blue_Gundam2002 is offline   Reply With Quote
Old 05-16-2004, 04:46 PM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
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].
mairving is offline   Reply With Quote
Old 05-16-2004, 05:08 PM   #7
Member (11 bit)
 
Blue_Gundam2002's Avatar
 
Join Date: May 2003
Location: Houston, Texas
Posts: 1,340
Send a message via AIM to Blue_Gundam2002 Send a message via Yahoo to Blue_Gundam2002
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 is offline   Reply With Quote
Old 05-16-2004, 07:10 PM   #8
Member (11 bit)
 
Blue_Gundam2002's Avatar
 
Join Date: May 2003
Location: Houston, Texas
Posts: 1,340
Send a message via AIM to Blue_Gundam2002 Send a message via Yahoo to Blue_Gundam2002
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.
Blue_Gundam2002 is offline   Reply With Quote
Old 05-17-2004, 08:01 AM   #9
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
To do that you would use smbclient.
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:37 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0