Advertisement

07.17.2008 at 05:45AM PDT, ID: 23572935 | Points: 500
[x]
Attachment Details

Mounting a Windows profile on Linux using Samba

Asked by netcentraltech in Samba File Sharing, Linux, Windows 2003 Server

Tags: , ,

Hi folks,

We use a Windows Server 2003 as our domain controller however we store the profile directories for the users on a NAS drive for backup purposes (it's a QNAP NAS).

We have other shared folders on this NAS which I have mounted just fine using CIFS using lines like this one in the fstab...

//10.0.0.10/Docs   /mnt/Docs   cifs   credentials=/home/steven/.creds,uid=steven,gid=steven   0   0

The .creds is a file only readable by the 'steven' unix user and contains my user/pass like so...

username=MY-DOMAIN\steven
password=password

These mount just fine and I can see stuff made by me in the past is user 300049 and new stuff I make is too, so far so good.  Everything seems to be group 300001 not sure if that matters.

If I mount the shared folder where we keep the profiles then I can read/write in that directory the same way.  But when it comes to a directory that represents a profile like /mnt/Profiles/steven then I can't even list the contents.
It's because the mode that folder is set to doesn't allow reading, but it is owned by 300049.  Make a directory along side it called 'steven2' and you can do what you like with it.  Here is how they look side by side.
drwx-wx-wx 23 30049 30001    0 2007-11-30 11:06 steven
drwxrwxrwx  2 30049 30001    0 2008-07-17 13:34 steven2

I'm wondering if I'm missing some special secondary login to be able to access that directory without modifying the NAS drive. I clearly am user 300049 as I log in as such and make files under that name, but if I am 300049 in that connect, why can I not read my own folder (all I get is permission denied)?

Any ideas would be greatly appreciated.

StevenStart Free Trial
[+][-]07.17.2008 at 09:17AM PDT, ID: 22027075

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.30.2008 at 03:05AM PDT, ID: 22603853

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628