LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2003, 11:32 AM   #1
mattymcg88
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
samba trouble


my plan was to move all my media files from my winXP partition to my linux partition and then share them on the network. I set up ntfs support on redhat 9 and got all of the files copied over just fine, changed the permissions so I can access the files, all that good stuff. I have samba up and running for the most part...but i'm basically at the point where I can share any folder I want except that music folder, and I can't figure out why. that section of my smb.conf file says:

[music]
writable = yes
public = no
browsable = no
path = /home/music
map archive = no
create mode = 0770
valid users = user1, user2, user3

they're all .mp3 files. i don't know if it has something to do with the way they were copied over from windows, or if I'm just doing something dumb. I can see and access all the files on linux just fine so the directory seems to be intact. when I try to test the configuration on localhost using the smbclient command I get this error:

"tree connect failed: NT_STATUS_BAD_NETWORK_NAME"

which doesn't make any sense to me. if I do the same thing for other folders specified in my smb.conf file it works just fine. I can see the music folder in my network neighborhood on a different machine running windows, but I can't access it. any ideas?
 
Old 06-01-2003, 12:10 PM   #2
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
I am assuming that you are logging in as user1, user2 or user3.

Why don't you want anyone to browse the directory?
 
Old 06-01-2003, 12:26 PM   #3
mattymcg88
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
yeah, i'm logging in as one of those users. i actually just copied those config settings from an example I found online (i'm very new to samba). before that I had it as just:

[music]
path = /home/music
read only = no
map archive = no

which is just another example I found. that wasn't working so I tried adding some more things to the configuration. i just don't understand why it works for all my other folders...
 
Old 06-01-2003, 12:27 PM   #4
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Hmmm,

From reading your post, it seems as if you want specific users to be able to browse the share. However, you have the "browsable = no" command in your smb.conf.

If you remove that, you should be okay.
 
Old 06-01-2003, 12:53 PM   #5
mattymcg88
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
well the way I had it before, browsable = no wasn't in the config file, and it wasn't working then either. all I had was those 3 lines. I have 2 other folders set up whose configs look just like that simple 3-line config (except for the path, obviously) and they both work fine...
 
Old 06-01-2003, 04:39 PM   #6
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Okay,

After removing the line, go to a command prompt.

Go to the home directory by typing:

cd /home

Check the ownership of the directories by typing:

ls -l

Let me know what the results are for the /home/music directory.
 
Old 06-02-2003, 08:34 AM   #7
mattymcg88
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
the folder has the following permissions:

rwxrw-rw

and is owned by the user mattymcg.

I'm at work right now and don't have access to the machine, so i can post the information in greater detail later if you were looking for more.

I've been testing the setups with 2 different users (other than mattymcg), one when I'm testing it on the linux machine with smbclient, and a different one on the winXP machine. I've created samba accounts for both of those users (again, it's working for those users with other folders I've tried to share). I actually don't think I ever created a samba account for mattymcg, but it doesn't seem like that should be a problem as long as the users who try to access the folder have read/write permission. I also tried giving everyone full access to the folder and that didn't help me.
 
Old 06-02-2003, 08:57 PM   #8
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Can't think of anything else.

Just check to make sure that you have no typos in the path to the share and that the Linux rights and ownership are the same for all the shares.


What does the command "map archive=no" do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba trouble c0uchm0nster Linux - Networking 21 05-20-2005 11:00 AM
samba install trouble nbolli Linux - Software 1 09-17-2004 06:02 PM
trouble with Samba and Win2K spike0 Linux - Networking 10 08-24-2004 09:56 PM
samba trouble: not available bjojoi Linux - Networking 0 08-25-2003 05:26 PM
Samba trouble bjojoi Linux - Networking 8 02-17-2003 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:25 PM.

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