Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting a windows share with CIFS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
skarecrow
n00b
n00b


Joined: 03 Nov 2003
Posts: 25
Location: $HOME

PostPosted: Thu Aug 24, 2006 7:27 pm    Post subject: Mounting a windows share with CIFS Reply with quote

Hi,

I am setting up some linux boxes in a mixed-mode Active Directory environment. The linux boxes are setup for single sign on and are part of the Windows domain.
In our office where the Linux boxes are, we have a "User" folder where we have folders for each of our users on the network. This share is hosted on a windows 2000 server. My goal is to map the Home folder to that User share on the Windows box.

Heres what my fstab looks like for mounting that share in linux.

Code:
//192.168.1.60/User   /home/DOMAIN   cifs  credentials=/shared/credentials   0 0


This mounts the directory just fine, but when users log in, they cant read the files in their own user/home folders. I'm sure it simply has to do with the mount options I'm passing, but I'm not all that familiar with CIFS yet.

Here is my credentials file...

Code:

Username = Administrator
Password = somepassword


I'm planning on installing MS services for Unix on our fileserver to see if that helps, but I would still like to know if I'm heading in the right direction. Any help is greatly appreciated!
Back to top
View user's profile Send private message
phorn
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2006
Posts: 109

PostPosted: Sat Sep 02, 2006 7:51 am    Post subject: Reply with quote

you want to use the "uid=1000,gid=1000,file_mode=0755,dir_mode=0755"

The important thing is that UID and GID are set to the proper numbers for the user that should own that home directory.
To get these from a shell script,
Code:
UID=`id -u username`
GID=`id -g username`


Also, it sounds like you are using *one* mount that will include all the users. Permissions can get a bit messy with this sort of thing.
If you are using winbind, I think it may assign UID's and maybe that will be used to compare against Windows ACL's. I've never used winbind with services for Unix.

In that case, you should play with file_mode,dir_mode (maybe 0000 or 0777 or 0700, depending on how ACL's work) and then the server may handle the ACL's (sadly they will be handled as the Administrator user you specified).
It sounds like if you have services for unix, and UID's match, then the ACLs (look at the getfacl program) on the server will determine the users who can access the file

Anyway good luck getting this monster working.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum