LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-08-2010, 03:31 PM   #1
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Rep: Reputation: 0
can mount WinXP share but not Win7 share in fstab


this has happened in different distros, so far i have tried slack, arch, and mint

at work i have an xp box with a shared folder i created. on my linux box i setup fstab as follows
Code:
//winxp/temp$   /home/user/temp      cifs    rw,uid=1000,gid=1000,credentials=/home/user/.creds   0  0
this gets mounted correctly and i can read/write the shared folder

at home i have a win7 box that i create a share on and use the exact same code in fstab, but it wont mount the share. i get something like permission denied or access denied

is there a difference in how winxp and win7 share folders? my usernames on the linux boxes match those of my windows boxes at each location. i have given my win accounts full access and control over the win shares.

am i missing something in linux? i wouldnt think so as it works with xp but not 7
 
Old 06-08-2010, 04:13 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Nope - Vista (and now Win2k08 and Win7) changed the rules big time.

SUGGESTION: Google for "samba windows 7"
 
Old 06-08-2010, 04:48 PM   #3
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Original Poster
Rep: Reputation: 0
thanks, im sure i will fix it with some of the links from that search, i will check those tonight or in the morning and report back
 
Old 06-08-2010, 10:49 PM   #4
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Original Poster
Rep: Reputation: 0
ok made some changes to the lanmanworkstation settings in the win7 registry, specifically this
HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD DomainCompatibilityMode = 1
DWORD DNSNameResolutionRequired = 0

not sure if it did anything though, still have the same problem with the fstab mounts

however i can do this
Code:
mount -t cifs //win7/temp$ /home/user/temp -o user=username
and it mounts fine but i dont have r/w access to it

any thoughts?
 
Old 06-09-2010, 12:34 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Good stuff here:
http://www.tomshardware.com/forum/75...ws-samba-issue

http://wiki.samba.org/index.php/Windows7
<= it sounds like you might already have been here

and here:
http://bbs.archlinux.org/viewtopic.php?id=89782

I think you're on the right track, and I'd continue to focus mostly (but, of course, not *exclusively*) on the Windows 7 side of the equation.

'Hope that helps .. PSM

Last edited by paulsm4; 06-09-2010 at 12:35 AM.
 
Old 06-09-2010, 07:59 AM   #6
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Original Poster
Rep: Reputation: 0
resolved

thanks for the links, yeah been to the first two, but that last one helped. i dug a little deeper in the win7 security settings, advanced settings, effective permissions. it had my name already there, but i added it again and checked everything and changed my fstab to
Code:
//winxp/temp$   /home/user/temp   smbfs  rw,uid=1000,gid=1000,file_mode=0700,dir_mode=0700,credentials=/home/user/.creds        0  0
now all my shares mount and i have r/w access to them. not sure what actually fixed it, but im sure it all helped.

thanks! i'm cured!! LOL
 
Old 06-10-2010, 10:47 AM   #7
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Original Poster
Rep: Reputation: 0
spoke too soon, its weird, i can mount it using the mount -t command like above but not with the fstab settings. is there a way to put those mount commands in a script file that runs when i log in?
 
Old 06-10-2010, 10:50 AM   #8
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
What have you put in the fstab settings? You'll need the same options that you are passing on the command line.

Maybe paste the fstab here, along with the command line you are using.

Last edited by djsmiley2k; 06-10-2010 at 10:52 AM. Reason: spelling
 
Old 06-13-2010, 03:55 PM   #9
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by djsmiley2k View Post
What have you put in the fstab settings? You'll need the same options that you are passing on the command line.

Maybe paste the fstab here, along with the command line you are using.
i've put both in previous posts, look up
 
Old 06-13-2010, 07:45 PM   #10
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Original Poster
Rep: Reputation: 0
wow, am i embarrassed. my cred file had the wrong password

this time its really solved
 
  


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
trying to auto mount xp share in fstab babag Linux - Networking 3 07-12-2008 04:48 AM
Can't mount nfs share from fstab but can mount it manually - help Mountain Linux - Networking 1 03-30-2008 08:34 PM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 08:00 AM
mounting an smbfs share using mount vs /etc/fstab sichen Linux - Networking 4 08-13-2004 06:40 PM
cant mount winxp share m_u_y_m_u_y Linux - Networking 4 10-17-2003 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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