LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-16-2004, 05:37 PM   #1
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
u: drive... back in the day


a long time ago.....

actually only a few years ago at my school everyone was assinged there own log in (username password) and then when it logged in it would automatically assign us with our own personal network u: drive that we could access from any computer as long as we were logged in

it also assign us a p: network drive that anyone could use for community files and what not
(we were all using windows 98 at the school on all there computers and i am pretty sure the server was windows nt - yeah...)

well today i have a linux server and 4 windows xp machines at my house

i was wonder how i would be able to replicate this do i need windows nt as the server and/or does it work with windows xp??

if i can do this with my linux server that would rock

so when any of my friends/family log into any computer at my home a u: drive would automatically be assinged in my computer where they could access any of there files from my server

i am guessing i am going to have to make some login scripts
but i am not sure how to set these up
or how to set up the winxp machines so this will work... (or the linux server)...
if more info needed please ask

thanks a TON

Last edited by citrus; 05-16-2004 at 05:40 PM.
 
Old 05-16-2004, 05:40 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Take a look at Samba -- you can have XP auto-mount remote directories, and you can choose those to be your "P" and "U" drives.
 
Old 05-16-2004, 05:56 PM   #3
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
dude.. i know that much
and i know how samba works

thats KINDA what i am asking

i need any computer in my house when logged in to automatcially mount the SPECIFIC USERS u: drive i don't want to have to configure a bunch of shit for EVERY winxp machine
i want it to run a login script off the server that assigns the right drive...

if i am asking this in the wrong forum please let me know
 
Old 05-16-2004, 06:07 PM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
So you want a domain logon script, meaning?
 
Old 05-16-2004, 06:27 PM   #5
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
well if you mean making linux a domain and then getting the scripts off there that will automatically mount the users drive at logon

then.. umm yes
 
Old 05-16-2004, 06:28 PM   #6
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
does anyone know what i am talking about

?

let me simplify for a sec

i want to add users in linux server

when users log into there windows machine it will go to the linux server authenticate them and then automatically assigne them a netowrk drive on (whatever machin there on ) to a directory on the linux server.... so then he and only he can access that drive/directory


does that make sence?

Last edited by citrus; 05-16-2004 at 06:39 PM.
 
Old 05-16-2004, 06:35 PM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
You should be able to define the logon script in XP (they have to be XP Pro -- Home can't connect to a domain) to a location on your linux box. It's the same as any other logon script (usually a .bat file) that XP will execute upon connection to the network.

Isn't it simpler just to set up each of the 4 boxes? Pointing them towards a specific directory?
 
Old 05-16-2004, 06:41 PM   #8
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
yes that is what i want...

but i also want the server to authenticate them
not xp

the problem is i don't know how to do this
 
Old 05-16-2004, 10:06 PM   #9
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
can anyone help plz?
 
Old 05-16-2004, 10:59 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
First of all, try not to bump your threads til after 24 hours has passed.

Secondly, the only way I know of doing this like everyone has mentioned, setting up a domain server, creating a domain logon script that the XP/Windows machines use to login, authenticate and mount/map shared drives.

We do this at work actually. I'm more familiar with the Linux side of things, not the Windows side but I'll see about looking into it, make sure we are authenticating the users on Linux. Could be Windows but I do know all their mapped drives, shares, etc are setup on Linux, using Samba, etc.
 
Old 05-16-2004, 11:12 PM   #11
duncanbojangles
Member
 
Registered: Jul 2003
Posts: 34

Rep: Reputation: 15
I know exactly what you are asking. When you set up Samba, you must add a user to your linux box that matches the user on the Windows XP box, i.e, if you have a user named "drippy" with a password of "poop", go on your linux box and type "adduser" and put in the appropriate information. Do this for everyone you plan on doing this for. Now, each person has their own /home directory on the linux box. This is where they will be storing their stuff. If you want to have a common directory for all users to share, make a directory on the linux box then make a link to it in each person's /home directory. So you've got your directories set up. Make sure you chmod them appropriately, and then for each user do a "smbpasswd", and yet again fill in the appropriate information. Set up Samba's smb.conf so that you are sharing the appropriate folders, and sharing amongst the appropriate IP's. Once this is all set up, make sure each user has an account on the Windows machine with the EXACT SAME username and password. This is important, the exact same, okay? You may need to see about some specifics for XP and Samba since I don't use it, but I don't think you need to change anything. Now, log on to the XP machine with the username and password of the user, and go Windows Explorer, not My Computer, and under the "Tools" tab, click on "Map Network Drive". This is pretty self-explanatory. Make sure to check on the checkbox that says something to the effect of "Reload on startup". You can also select your drive. This works for Windows 98, so for XP you may just have to go to "Network Neighborhood", and muddle around in there. Make sure to check for specifics in XP & Samba configruation, but other than that, you're done! See, no need for startup scripts

Note: I may have been vague on some ^H^H^H^H most details, but that's just because I usually try things before reading directions, so I do the same thing many times and the wrong and right operations get confused inside of my head. When in doubt, consult your friendly man pages, and let your fingers do the walking.

Last edited by duncanbojangles; 05-16-2004 at 11:14 PM.
 
Old 05-16-2004, 11:47 PM   #12
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
yeah that is the basic idea of what i had in mind

but if i remeber right they didn't have to set up each user on the win98 machines at school cuz that was like over 500 users they would have to set up per machine...
i know they used login scripts and that bascially what i want to do
and i don't want to have to set up each user per machine
what i want is when i had a user to the server that user can access any machine with out me having to actually go there and setting up that user...

i know it can be done
i am just not sure how
 
Old 05-17-2004, 08:43 AM   #13
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Quote:
Originally posted by citrus
dude.. i know that much
and i know how samba works

thats KINDA what i am asking

i need any computer in my house when logged in to automatcially mount the SPECIFIC USERS u: drive i don't want to have to configure a bunch of shit for EVERY winxp machine
i want it to run a login script off the server that assigns the right drive...

if i am asking this in the wrong forum please let me know
I think your at the right forum, and that every body is trying to give you a hand.... It is just hard to know how "qualified" you are :-)

See me ?? It does't show but I've been a network manager for more that 10 years, Linux specialist for about 5 years, that's how I earn my living... How would have tell!!

Now, about your problem:

I've tried to do the same when I was required to find a solution for a unified logon suthority in our network... I did explore the pam_mount module and it worked great... Well, it worked at least... I had problem with permissions (just like when setting regular samba :-) and missed time to solved that problem...

So here's the principle:
In you nsswitch.conf, you will have to had an antry saying to mount the home drive after autentification, before session.
So when the session is started, you can use your mounted dives...
I did use that module to mount remote home drives..

Dont give up!
 
Old 05-17-2004, 08:58 AM   #14
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Oops sorry, this is the ultimate opposite of what you asked:

A user loging into the linux box and mounting a Windows disk as home...

Not what you whant... SOrry I did not read the entire post.

So the new problem is:

You want a user to log into a XP box and atomaticly mount a disk from a linux... And dont want to configure every account on each machine (makes sense :-)

So no other solution that a unified logon:
All your machine need to authentify against the same entity (it maybe Windows 200X server, LDAP etc...)
From there, you will be able to log from any XP machine and have access to it's home directory without creating account on XP machines.

This is quite chalenging setup by the way :-)
 
Old 05-17-2004, 03:38 PM   #15
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
LuggerHouse - thanks i think you know what i am talking about

but i am not qualified in any area as far as networking
i know the ins and outs of home networking and thats about it
but hey thats a start right?

anyways you sound like you know what your doing
and i dont...

i know all the basics to windows and linux
so maybe you can help me get started with this

is there any good online books/tutorials that might help me with this?
or maybe you could walk me thru it...
can this be done with linux?? or do i need a windows server
thanks a ton

Last edited by citrus; 05-17-2004 at 03:41 PM.
 
  


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
Why not use Astaro as a normal day to day desktop?? chutsu Linux - General 1 10-08-2005 11:42 PM
Back up tape drive urgent spilotro47 Linux - Hardware 17 06-06-2005 07:56 AM
need a tool to back up hard drive citrus General 10 05-04-2004 06:27 PM
Back Up Hard Drive? RTB Linux - General 3 04-13-2002 12:14 PM
Want my drive back...who's going to give it to me?? rdiggidy Linux - Software 1 04-07-2002 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:18 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
Open Source Consulting | Domain Registration