Linux As a Client of Windows server 2003

  • saeed
  • Born
  • Born
  • saeed
  • Posts: 4

Post 3+ Months Ago

Hi ,

I have installed KUbuntu linux client and i want to configure it as a client of win 2003 server.

i have installed iall the packages nessecary for doing this job .

right now the active directory users can login through this client but their home directory and profile can not be loaded or mounted automatically.

I will highly appreciat your comments on this topic.

Regards,

Saeed
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4923
  • Loc: NY

Post 3+ Months Ago

What do you mean when you say that they can login THROUGH the Linux client? Are they sitting at the Linux console?
What home directory should they see? Did you create one in AD? They aren't going to see their Linux home directory on the windows server.
Are you using Samba client?
  • saeed
  • Born
  • Born
  • saeed
  • Posts: 4

Post 3+ Months Ago

hi dear thanks for your reply .

Server: Windows Server 2003 configured as Domain Controller
Client : Kubunt 7 linux client. Having role of Domain member.

I mean that Domain users can authenticate against my pdc through GUI of KUBUNTU Client. They get a Desktop like a normal linux session have but their remote home directory which is located on PDC server is not mounted.

If you want i can send you my configurations.

Regards,
saeed
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4923
  • Loc: NY

Post 3+ Months Ago

Correct me if I'm not understanding your setup. The user is sitting in front of the Linux box and is connecting to the Windows PDC. Is that correct?

What files would they see in the home directory on the Windows server if everything were working properly?
  • saeed
  • Born
  • Born
  • saeed
  • Posts: 4

Post 3+ Months Ago

Yeah your right.

the user is sitting in front of Linux Box which has samba and winbind installed. and the following files are also configured.
/etc/pam.d/common-auth
/etc/pam.d/common-session
/etc/pam.d/common-password
/etc/pam.d/common-account

When the user logs in he should see all the files in his home directory. I mean those files when he logs on from a windows client and saves to its romaing profile (home directory on the server). I mean his/her data files etc.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4923
  • Loc: NY

Post 3+ Months Ago

http://wiki.samba.org/index.php/Samba_& ... with_Samba

See if that helps.
  • saeed
  • Born
  • Born
  • saeed
  • Posts: 4

Post 3+ Months Ago

Once again thanks for your reply.

This documentation will help if we want our linux box to serve as pdc.

My case: I want my windows server 2003 users to login to the server and have the private files and feel no difference whether they log in from windows client or linux box.

I think i am stuck with the configuration of /etc/security/pam_mount.conf file.

i am sending you the content may this help me solve the problem.



debug 1


# Create mountpoint if it does not exist yet. This is a good thing.
mkmountpoint 1
luserconf .pam_mount.conf

# Loopback device to use to run fsck on loopback filesystems.
fsckloop /dev/loop7
options_allow nosuid,nodev
options_deny suid,dev
options_require nosuid,no
#options_allow nosuid,nodev,loop,encryption,fsck
#options_deny suid,dev
#options_allow *
#options_deny *
options_require nosuid,nodev
------------------------------------------------------------------------------
# Commands to mount/unmount volumes. They can take parameters, as shown.
#
# If you change the -p0 argument for lclmount, you'll need to modify the
# source in mount.c (it sends the password to the stdin file descriptor
# of the child process -- look for STDIN_FILENO).
#
lsof /usr/bin/lsof %(MNTPT)
fsck /sbin/fsck -p %(FSCKLOOP)
#lsof /usr/sbin/lsof %(MNTPT)
#fsck /sbin/fsck -p %(FSCKTARGET)
losetup /sbin/losetup -p0 "%(before=\"-e\" CIPHER)" "%(before=\"-k\" KEYBITS)" %(FSCKLOOP) %(VOLUME)
unlosetup /sbin/losetup -d %(FSCKLOOP)
cifsmount /bin/mount -t cifs //%(SERVER)/%(VOLUME) %(MNTPT) -S -o "username=%(USER)%(before=\",\" OPTIONS)"

smbmount /usr/bin/smbmount //%(SERVER)/%(VOLUME) %(MNTPT) -o "username=%(USER)%(before=\",\" OPTIONS)"
ncpmount /usr/bin/ncpmount %(SERVER)/%(USER) %(MNTPT) -o "pass-fd=0,volume=%(VOLUME)%(before=\",\" OPTIONS)"
smbumount /usr/bin/smbumount %(MNTPT)
ncpumount /usr/bin/ncpumount %(MNTPT)

# Linux supports lazy unmounting (-l). May be dangerous for encrypted volumes.
# May also break loopback mounts because loopback devices are not freed.
# Need to unmount mount point not volume to support SMB mounts, etc.
umount /bin/umount %(MNTPT)

# On OpenBSD try "/usr/local/bin/mount_ehd" (included in pam_mount package).
lclmount /bin/mount -p0 -t %(FSTYPE) %(VOLUME) %(MNTPT) "%(before=\"-o\" OPTIONS)"
cryptmount /bin/mount -t crypt "%(before=\"-o\" OPTIONS)" %(VOLUME) %(MNTPT)
nfsmount /bin/mount %(SERVER):%(VOLUME) %(MNTPT) "%(before=\"-o\" OPTIONS)"
mntagain /bin/mount --bind %(PREVMNTPT) %(MNTPT)
# For BSD: mntagain mount_null %(PREVMNTPT) %(MNTPT)
# For Solaris: mntagain mount -F lofs %(PREVMNTPT) %(MNTPT)
mntcheck /bin/mount # For BSD's (don't have /etc/mtab)
pmvarrun /usr/sbin/pmvarrun -u %(USER) -d -o %(OPERATION)
# Some more examples:
# volume * auto - /home/&.img - - aes-256-ecb /etc/ehd/&
# Windows 2000, which requires a domain specified, example (thanks John Knox):
# volume * smbfs viper & /home/& uid=&,gid=&,dmask=0750,workgroup=WINDOWS_DOMAIN - -
# An NCP example:
# volume user ncpfs SERVER /USERS/Department/user /home/user user=user.full.context,uid=user,gid=user,symlinks - -
# An example using spaces:
# volume * smbfs krueger 'Home\ Directories' /home/& - - -
volume * smb server & /home/GRAND/& uid=&,gid=&,dmask=0750,workgroup=DOMAIN - -

#------------------------------------------------------------------------------
# Linux encrypted home directory examples, using dm_crypt:
#
# crypt mounts require a kernel with CONFIG_BLK_DEV_DM and CONFIG_DM_CRYPT
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

what version of kubuntu are you using?



hm.. maybe this howto will be of use to you. part 5 & 6 especially.

this article may also be of use to you. search the page for the word "home" if you want specific help there.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 10 guests
  • 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 post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.