LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   samba trouble (https://www.linuxquestions.org/questions/linux-networking-3/samba-trouble-63020/)

mattymcg88 06-01-2003 11:32 AM

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?

jamrock 06-01-2003 12:10 PM

I am assuming that you are logging in as user1, user2 or user3.

Why don't you want anyone to browse the directory?

mattymcg88 06-01-2003 12:26 PM

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

jamrock 06-01-2003 12:27 PM

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.

mattymcg88 06-01-2003 12:53 PM

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

jamrock 06-01-2003 04:39 PM

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.

mattymcg88 06-02-2003 08:34 AM

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.

jamrock 06-02-2003 08:57 PM

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?


All times are GMT -5. The time now is 11:26 PM.