• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Part Samba, Part Mount*fixed*

flippinfleck

Golden Member
So here's what I'm looking to do...

I've got a large hard drive with lots of mp3's on it. I want to be able to add to this collection from one computer to another using Samba.

I'm using RH 7.1 w/Samba, and all is working well so far. Only problem is, when the drive (fat32) is mounted as per my /etc/fstab it becomes -rwxr-xr-x That's not what I want! I want to be able to log in as my normal user on Win2k (already have the smbpasswd file set up) and copy mp3's to this drive. That's not possible unless my Win2k username is root with the root password. Even though I have encrypted passwords, I don't want to do this.

What am I missing? I've read all the relevant man pages, read all the faq's, all the how-to's and guides.

Everything else works fine. I can peruse the files on the drive over the network, I can add to my home directory (on the linux drive) just fine. But I cannot add to the mounted drive.

Grrrr!
 
I am guessing from your post that you are mounting from windows to linux. The rest of my post will assume that is what you are doing.

First you can execute the mount command with a username and password attached to it. If you're using samba, use the uid=??,gid=??. This will set the user and group who own the mount.

If your going from a mounting a linux drive on windows, you just need to set up an account on your linux box with the same login and passwd as the windows accout.(remember to add the user to samba and give it a samba passwd) Then give that user read/write permissions to the share in smb.conf.

ttn1
 
The drive is a fat partition, physicaly located inside the linux box. I have no problems with accessing the share, as all the users on the linux box are on the win box.

So I need to do the mount w/the uid=xxx,gid=xxx in order for a particular user to have ownership of the mount. Gonna give it a try, see how it works.

>edit adding uid=xxx,gid=xxx to fstab and remounting the drive worked, thanks edit<
 
Back
Top