LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-20-2005, 05:31 PM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 668
Blog Entries: 7

Rep: Reputation: 31
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.
 
Old 04-21-2005, 10:36 AM   #2
The_Last_Nerd
LQ Newbie
 
Registered: May 2004
Location: Syraucse, NY
Distribution: Slackware 10.0 (my first love), Arch Linux (my new love)
Posts: 17

Rep: Reputation: 0
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
 
Old 04-22-2005, 08:21 AM   #3
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 668
Blog Entries: 7

Original Poster
Rep: Reputation: 31
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
>????
 
Old 04-22-2005, 09:43 AM   #4
The_Last_Nerd
LQ Newbie
 
Registered: May 2004
Location: Syraucse, NY
Distribution: Slackware 10.0 (my first love), Arch Linux (my new love)
Posts: 17

Rep: Reputation: 0
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
 
Old 04-22-2005, 12:37 PM   #5
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 668
Blog Entries: 7

Original Poster
Rep: Reputation: 31
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
 
Old 04-22-2005, 01:43 PM   #6
The_Last_Nerd
LQ Newbie
 
Registered: May 2004
Location: Syraucse, NY
Distribution: Slackware 10.0 (my first love), Arch Linux (my new love)
Posts: 17

Rep: Reputation: 0
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
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Cannot create files on samba share jhoderd Linux - Software 2 01-04-2005 08:46 AM
can't create/modify files in a samba share deadslota Linux - Newbie 4 08-07-2004 10:26 PM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM
ok i giv eup on samba, i want to create an ftp share now...vsftpd rvn Linux - Newbie 3 10-10-2003 01:45 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration