LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using samba to create share on mandrake (https://www.linuxquestions.org/questions/linux-software-2/using-samba-to-create-share-on-mandrake-315476/)

ALInux 04-20-2005 05:31 PM

Using samba to create share on mandrake
 
Hi there
Ive got a network on which Ive got 7 XP boxes and 1 Mandrake 10.0 Linux box, on that Linux box is a fat32 harddrive which contains 30GB of Music and I have it mounted to \home\xxx\Desktop\Music\ .
I want to know if there is a way to let the windows users access that file without using a password "Ive already got samba running, but the mentioned file is not shared".

Thanks in advance for any help.

The_Last_Nerd 04-21-2005 10:36 AM

what does your fstab look like? i have a similar setup and even when i have samba setup correctly you must make sure the vfat drive has permissions set correctly.

here are mine as examples..

Code:

/dev/hda6        swap            swap        defaults        0  0
/dev/hda5        /                reiserfs    defaults        1  1
/dev/hdc1        /mnt/hdc1        vfat        umask=0000      0  0
/dev/hda1        /mnt/hda1        ntfs        ro              1  0
/dev/hdi1        /mnt/hdi1        vfat        umask=0000      0  0
/dev/md0        /mnt/md0          reiserfs    rw              1  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,owner,ro  0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0

notice the umask=0000 on my vfat drives. sure its not the most secure way to do things, but i had to get this working quick one day and i just kinda left it. but those permissions allow read/write to the vfat drives. now for smb.conf...

Code:

workgroup = WORKGROUP
encrypt passwords = yes
security = share

[120GB_Net-B]
        path=/mnt/hdc1
        public=yes
        writable=yes
        guest ok=yes
[120GB_Net-C]
        path=/mnt/hdi1
        public=yes
        writable=yes
        guest ok=yes

both vfat shares are defined as writable and guest ok. that should let your client computers login just fine. feel free to change the writable permission but in case you want to move some music over to the drive at a later date its nice to have on. if they dont have the guest account enabled on the windows machines, enable it and it should log you on fine.

all this being said the above configuration should work without logging in, but it is by no means the safest way. i just recently set this up myself on a new server box and just did it fast so it would work, so give those changes a shot and see if it works, then go back and close things down a bit so your files arent so open to everyone-The_Nerd

ALInux 04-22-2005 08:21 AM

actually i did all the things you mentioned
I edited my smb.conf to make the shares public
and I used chmod 0000 to make my hda3 and hda5 ( i.e win_c and win_d) like your fstab
but the problem still exists
thanks for your help but do you have any other ideas
>????

The_Last_Nerd 04-22-2005 09:43 AM

make sure that you can acess the vfat drives from your regular user. login as someone not root and make sure you can read and write to the drives. also can you post the error message you get if any on the windows pc's your trying to acess the share from. though i've never had to with a vfat share, you may also be able to create a user and then force that users login everytime somemone logs onto the samba share and thus no one has to login. but make sure a non root user can read/write to the drive and post any error messages.

Edit: heres another quick thought. having it mounted within your homedir may be messing things up as well. i dont have too much experience with all this, i just know mine works and i always have mounted my drive as /mnt/hdxx . try mounting it there and changing smb.conf accordingly

ALInux 04-22-2005 12:37 PM

actually I enter as a normal user
then I su and mount the drives etc, and then i access them normally
thansk for your help

The_Last_Nerd 04-22-2005 01:43 PM

hmm well i guess i'm not too sure then ALInux. one last thing to try for the heck of it would be to restart smbd. from what you've said it sounds like samba loads, then you mount your drives after samba has started. i would restart samba after you have mounted the drives, just to see if that picks them up for whatever reason. other than that i'm not sure.-The_Nerd


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