User Permissions & Auto-mount On Windows Network Drive

Hi all.

I’m running OpenSuse 11.2. I’ve got it running mostly the way I want and it connects to my wireless internet no problem. I have a external hard-drive on my Windows machine setup as a share folder. I can mount the drive with:


mount //10.13.23.2/D /home/james/mnt/win

However when I do mount like this it doesn’t give my any read/write privliages on the drive.

Also on a slightly different issue but still mounting related I have my HDD partitioned into four main drives (not including swap etc). They are my Windows drive, a seperate storage partition formatted for Windows, my main linux drive and a seperate parition for linux storage.

I want to have my Windows drive, my Windows storage drive and my linux storage drive all mounted on boot. I tried adding these to fstab, and they mount fine but again I have no read/write permissions. My fstab looks like this:



/dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part5 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part6 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part7 /home                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part2 /windows/C           ntfs-3g    flatline,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part3 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part8 /home/james/mnt/data          ext3    flatline,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0

The parts are as follows:

Part 2: Windows Vista Boot
Part 3: Windows Storage
Part 5: Linux Swap
Part 6: Linux Native (/)
Part 7: Linux Native (/home)
Part 8: Linux Storage

Lastly I would like my Windows Share drive to mount on boot but I have been advised that I would need to write a shell script for this, to do network checks as obviously I won’t always be connecting to my network. I know this isn’t the right place for this part, but could you point me in the right direction.

James

On Thu February 11 2010 01:56 pm, jkraw90 wrote:

>
> Hi all.
>
> I’m running OpenSuse 11.2. I’ve got it running mostly the way I want
> and it connects to my wireless internet no problem. I have a external
> hard-drive on my Windows machine setup as a share folder. I can mount
> the drive with:
>
>
> Code:
> --------------------
>
> mount //10.13.23.2/D /home/james/mnt/win
>
> --------------------
>
>
> However when I do mount like this it doesn’t give my any read/write
> privliages on the drive.
>
> Also on a slightly different issue but still mounting related I have my
> HDD partitioned into four main drives (not including swap etc). They are
> my Windows drive, a seperate storage partition formatted for Windows, my
> main linux drive and a seperate parition for linux storage.
>
> I want to have my Windows drive, my Windows storage drive and my linux
> storage drive all mounted on boot. I tried adding these to fstab, and
> they mount fine but again I have no read/write permissions. My fstab
> looks like this:
>
>
> Code:
> --------------------
>
>
> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part5 swap
swap defaults 0 0
> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part6 /
ext4 acl,user_xattr 1 1
> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part7 /home
ext4 acl,user_xattr 1 2
> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part2 /windows/C
ntfs-3g flatline,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part3 /windows/D
ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part8 /home/flatline/mnt/data
ext3 flatline,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
>
> --------------------
>
>
> The parts are as follows:
>
> Part 2: Windows Vista Boot
> Part 3: Windows Storage
> Part 5: Linux Swap
> Part 6: Linux Native (/)
> Part 7: Linux Native (/home)
> Part 8: Linux Storage
>
>
> Lastly I would like my Windows Share drive to mount on boot but I have
> been advised that I would need to write a shell script for this, to do
> network checks as obviously I won’t always be connecting to my network.
> I know this isn’t the right place for this part, but could you point me
> in the right direction.
>
>
> James
>
>
James;

This HowTo by Swerdna should help you in mounting your windows share.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

On Thu February 11 2010 05:25 pm, PV wrote:

> On Thu February 11 2010 01:56 pm, jkraw90 wrote:
>
>>
>> Hi all.
>>
<snip>
>>
>> I want to have my Windows drive, my Windows storage drive and my linux
>> storage drive all mounted on boot. I tried adding these to fstab, and
>> they mount fine but again I have no read/write permissions. My fstab
>> looks like this:
>>
>>
>> Code:
>> --------------------
>>
>>
>> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part5 swap
> swap defaults 0 0
>> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part6 /
> ext4 acl,user_xattr 1 1
>> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part7 /home
> ext4 acl,user_xattr 1 2
>> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part2 /windows/C
> ntfs-3g flatline,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
>> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part3 /windows/D
> ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
>> /dev/disk/by-id/ata-WDC_WD2500BEVT-35ZCT0_WD-WXE908AE4273-part8 /home/flatline/mnt/data
> ext3 flatline,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
>>
>> --------------------
>>
>>
<snip>
>>
> James;
>
> This HowTo by Swerdna should help you in mounting your windows share.

James;

Try adding the option “uid=<username>” to the fstab for your windows
partitions. Where <username> is the name of the user you wish to own the
files/directories. You have masked out write privilege for the owning group
and I believe you will find that the user is set to root.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

The uid trick worked for the Windows partitions but there dosn’t seem to be a link to the tutorial you mentioned about Windows Shares?

On Fri February 12 2010 01:36 pm, jkraw90 wrote:

>
> The uid trick worked for the Windows partitions but there dosn’t seem to
> be a link to the tutorial you mentioned about Windows Shares?
>
James;

Sorry about that. Here is the link:
http://opensuse.swerdna.org/susesambacifs.html

Please accept my apology.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Thanks. The guide answered all my questions and solved the problem.

On Fri February 12 2010 07:06 pm, jkraw90 wrote:

>
> Thanks. The guide answered all my questions and solved the problem.
>
>
James;

Good to see you have it sorted out.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green