LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-25-2006, 10:38 AM   #1
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
samba mounting windows share


Hi, I'm trying to mount a windows share but all I can do after mounting is seeing the folders and files on the share. I can not read any file, I get "permission denied". On windows everything should be set to allow for the files to be read (if my brother didn't forget, overlooked anything). I even disabled the windows firewall.

The windows computer can access the arch linux samba shares without a problem.

I'm running arch linux current up to date.

Here's how I mount, as root:
mount -t smbfs -o username=gast,password=gast //192.168.0.132/Muziek /mnt/LW/Muziek/

(gets mounted succesfully, but I can't read the files)

Here's my /etc/samba/smb.conf:

#Global Parameters
[global]
workgroup = THUIS
netbios name = gel
passdb backend = smbpasswd
force create mode = 0770
force directory mode = 0770
wins support = yes
case sensitive = no
encrypt passwords = yes
security = share
server string = Linux


[share]
path = /mnt/hda1
public = yes
only guest = yes
writable = no
printable = no
create mask = 777


Can anyone help me out? I've been trying to get it working for at least a few hours :s.
 
Old 06-25-2006, 10:47 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Strange... you should be able to read the files. Try this:

Code:
mount //192.168.0.132/Muziek /mnt/LW/Muziek/ -o username=gast,password=gast,dmask=777,fmask=777

Last edited by Mega Man X; 06-25-2006 at 10:48 AM.
 
Old 06-25-2006, 10:54 AM   #3
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
Doesn't work. It's just the same
 
Old 06-25-2006, 11:45 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
What do you see if you enter

Code:
ls -las /mnt/LW/Muziek/
Try adding one or more of these smbmount options:

Code:
rw
uid=SomeUserThatWantsToSeeSmbShares
gid=SomeUserThatWantsToSeeSmbShares
What are the permisions on your '/mnt' directory?

--- rod.
 
Old 06-25-2006, 12:27 PM   #5
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
[root@gel LW]# ls -las /mnt/LW/Muziek/
total 4446
4 drwxr-xr-x 1 root root 4096 Jun 25 18:18 .
4 drwxr-xr-x 5 root root 4096 Jun 25 16:54 ..
4 drwxr-xr-x 1 root root 4096 Sep 25 2005 Classical & Avant-garde
4 drwxr-xr-x 1 root root 4096 Jan 1 21:18 Compilations & Soundtracks
4 drwxr-xr-x 1 root root 4096 Sep 26 2005 Jazz & Improvisation
4 drwxr-xr-x 1 root root 4096 Nov 18 2005 MOD
4 drwxr-xr-x 1 root root 4096 Jul 17 2005 Niet Op Artiest
4 drwxr-xr-x 1 root root 4096 Feb 21 18:57 Rock & Various
3370 -rwxr-xr-x 1 root root 3450473 May 26 19:16 alles.m3u
2 -rwxr-xr-x 1 root root 1646 Oct 19 2005 betereMOD.m3u
9 -rwxr-xr-x 1 root root 8853 Mar 14 19:48 dansbaar_fuif.m3u
765 -rwxr-xr-x 1 root root 782973 May 1 23:18 electro.m3u
268 -rwxr-xr-x 1 root root 274088 May 26 19:17 filmmuziek.m3u


/mnt:
drwxr-xr-x 11 root root 4096 Jun 5 14:43 mnt


As you see, I should have permission to read and execute. But I cannot even read as root.

I did try gid=user and uid=user and rw. But none did help.

Could it be that samba 3.0.22A-3 doesn't work very well with windows 2000 pro sp4 ?
 
Old 06-25-2006, 06:19 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Okay, just covering all the bases here. What makes you think the files are not readable? Can you do file copies to other directories? Can you open a file with some application appropriate to the file type? When you change the mount options, are you first doing 'umount' the already mounted filesystem. Do you have another Windows system (or other Linux, for that matter) to try to read the shared files from? Sorry if these seem obvious, but one has to look at all possibilities, especially when nothing seems to make sense.

--- rod.
 
Old 06-25-2006, 06:47 PM   #7
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
No I can't do file copies (not in terminal with cp, nor in emelfm), I can't read any files with the right programs, yes I do umount and then mount again when changing,... No I don't have another linux or windows system. But you raised a good question there, I'll try out how it works with a livecd like knoppix. You're right, nothing seems to make sense with this :s
 
  


Reply



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
Mounting Windows Network Share via Samba colabus Linux - Software 11 12-08-2008 01:52 AM
mounting windows share with samba? lilili Linux - Software 2 03-08-2006 03:10 AM
automatic Mounting Windows Share using samba MediMania Linux - Software 4 11-17-2005 03:54 AM
mounting a windows (samba) share? alsjordan Linux - Newbie 3 08-06-2005 08:22 AM
Mounting Windows Network Share via Samba colabus Linux - Newbie 6 10-12-2004 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 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