LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   After Upgrading from Win7-32 to WIN7-64 can't mount cifs shares (http://www.linuxquestions.org/questions/linux-networking-3/after-upgrading-from-win7-32-to-win7-64-cant-mount-cifs-shares-821354/)

pobrika 07-21-2010 06:07 PM

After Upgrading from Win7-32 to WIN7-64 can't mount cifs shares
 
Hi all,

This is the first time I have run into issues mounting windows shares but I really can't figure this out. Can someone put me out of my windows misery please.

First off, last week I rebuilt my work PC fromWIN7 32bit to WIN7 64bit since then I can no longer mount the window share on my ubuntu server:
Ubuntu 10.04 (32 bit) - 2.6.32-22-generic #36-Ubuntu SMP

I recreated my windows share called "Linux" and used the properties, advanced sharing and added everyone, full access and my domain account full access.

If I browse to \\ipaddress I can see my share and access it.
From a XP machine I can see the share and access it.

From linux I use the same mount point as before, /linux
I use the same fstab and it fails
Code:

//ipaddress/Linux    /linux          smbfs  username=MYDOMAIN\username,password=xxxxxx,_netdev,uid=1000,gid=1000 0 0
I try this manually now:
Code:

# smbclient --user=mydomain/username -L ipaddress
Domain=[MYDOMAIN] OS=[Windows 7 Enterprise 7600] Server=[Windows 7 Enterprise 6.1]

        Sharename      Type      Comment
        ---------      ----      -------
        Linux            Disk      Linux_Share

Next I try to mount it:

Code:

# mount -t cifs //ipaddress/Linux /linux -o username=MYDOMAIN/username
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I looked at my firewall rules and they seem ok.

Next test was connecting to my 2nd pc on windows XP no probs mounted first time.

What is wrong with my new Win 7 setup?

any help would be very welcome.

jlinkels 07-21-2010 07:40 PM

Quote:

Originally Posted by pobrika (Post 4041208)
[CODE]# mount -t cifs //ipaddress/Linux /linux -o username=MYDOMAIN/username

Are you sure username=MYDOMAIN/username is acceptable? I use username=MYDOMAIN\username

jlinkels

pobrika 07-21-2010 08:15 PM

OMG I found the answer, and can't belive it after 2 days of messing with this.

A reboot fixed it! How about that for a momment I felt like I was on a windows machine :D

Quote:

Are you sure username=MYDOMAIN/username is acceptable? I use username=MYDOMAIN\username
Both of these cmds below worked for mounting once I had rebooted.

Code:

mount -t cifs //172.17.1.132/test /linux -o username=domain/user,password=xxxxxxx
mount -t cifs //172.17.1.132/test /linux -o username=user,domain=domain

I can only guess it was a kernel thing? Now using:
Code:

2.6.32-24-generic #38-Ubuntu SMP


All times are GMT -5. The time now is 02:22 AM.