LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2005, 05:12 PM   #1
hellaperv
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
FC3 login to windows domain


I have a few Redhat 9 & FC3 boxes that I am trying to log into a windows domain using a windows username / password authentication. I have written a working login script that mounts some windows shares using a cedentials file kept locally. Is there a way to mount windows shares using windows username/password authentication so that I don't have to have a credential file stored locally on each machine ?
 
Old 03-22-2005, 05:15 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Several methods, but it depends on what you're trying to do - are the shares home directories ?
 
Old 03-23-2005, 11:03 AM   #3
hellaperv
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
No hob, they are public shares on the windows server being mounted to home folders on the fc3 box
 
Old 03-23-2005, 11:50 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
If users are logging into Linux systems that have Winbind, using Active Directory accounts, then then you can use the Kerberos options (smbmount -k) so that the user's current credentials are reused.

Automount supports mounting Windows shares, but I haven't used it yet, so I don't know how that works in practice.
 
Old 03-23-2005, 02:28 PM   #5
hellaperv
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
hob,

That didn't work. Here is what I have in my login script.

# Variables
I=/home/$USER/I-Drive
P=/home/$USER/P-Drive

# VERIFY
if ! [ -d "$I" ]
then mkdir $I
fi
if ! [ -d "$P" ]
then mkdir $P
fi

# MOUNT
smbmount //adm-server/I-DRIVE $I smbfs -o -k workgroup=OE1,gid=$USER,rw,user,noauto,0 0
smbmount //adm-server/Personal $P smbfs -o -k workgroup=OE1,gid=$USER,rw,user,noauto,0 0
 
Old 03-24-2005, 12:12 PM   #6
hellaperv
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Hob,

The user accounts are on an NT domain (No Active Directory). I did however get the ( smbmount -k ) to work somewhat. It just prompts me for a password when mounting the shares. Is there a way to use the cached password ?
 
Old 03-24-2005, 03:15 PM   #7
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
The caching is done by the Kerberos client software on the Linux system, which retains Kerberos credentials passed by a Kerberos server (like AD, NT 4 does not use Kerberos). Since there are no cached Kerberos credentials smbmount then prompts you for a password.

Somebody I was helping on another thread reported success with the pam_mount module for PAM, which will automatically mount shares as part of the login process - presumably this will automatically use the username/password given.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux domain versus windows domain JamShah Linux - Networking 5 10-31-2005 07:52 PM
Joined Domain, can't login as domain user mikeyt_333 Linux - Networking 12 08-26-2005 09:25 AM
login to windows domain juannicolas Linux - Networking 2 05-27-2004 08:05 PM
login windows 2000 domain meeh Linux - Networking 1 10-06-2003 03:27 AM
Login to windows domain yugocrazy Mandriva 1 09-03-2003 08:51 AM


All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration