LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 11-12-2012, 05:08 AM   #1
glimmer1980
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
Logon script


Hello,

We have a windows 2003 / 2008 server that handles all our logins from our clients. The clients are now win7. The users all have logonscripts where each user has rights to his/her drivemappings. I am testing a computer with linux on it. I am a beginning user if it comes to linux. I succeeded in joining the linux pc to our windows domain. Next i succeeded to login on my linux pc with my windows user credentials. Now comes the hard part.

Next i want a user that logs on with the linux PC to run the scripts i have created on the windows server. Is it possible to do this or do i need to create different kind of scripts?

I can really use some help here, does somebody got a usefll manual for me?

Regards,

Ramon
 
Old 11-12-2012, 10:13 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,514
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
What do the " the scripts [you]i have created on the windows server" do? What language are they written in? Can you post one here?

BTW how did you set up to "login on [your] linux pc with [your] windows user credentials"?
 
Old 11-13-2012, 04:55 AM   #3
glimmer1980
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
The script is nothing more than a batch file that runs when a user logs onto his windows machine. In the script i define certan drivemappings to the shares that i created on the windows server (for example, net use y: \\servername\share). Every user has his own batch script that also creates his/her own drivemapping.

I installed OpenSuse where i needed to define kerberos settings. I went to Yast --> Kerberos client configuration and there i entered our default domain name and the KDC server address. I also defined LDAP service. After i finished the configurations i could log in with my windows credentials. The only thing i would like now is that i can use the batch "script" that i created on windows for our users.

Last edited by glimmer1980; 11-13-2012 at 04:58 AM.
 
1 members found this post helpful.
Old 11-13-2012, 07:02 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,514
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Leaving aside the question of whether there is a .BAT interpreter for Linux and using your example, what would be the equivalent of net use y: \\servername\share? What would Y: mean on Linux?

Thanks for explaining how you set up to login with your windows user credentials.
 
Old 11-13-2012, 07:06 AM   #5
glimmer1980
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Y would mean the drive letter in windows, i don't know if that would go the same in linux?
 
Old 11-13-2012, 07:44 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,514
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
AFAIK there is no convention so it's a design decision for you to take.

You could look at the Linux Filesystem Hierarchy Standard (FHS) for inspiration. According to the FHS, /mnt and its subdirectories "is provided so that the system administrator may temporarily mount a filesystem".

If you don't regard your user as a system administrator you may prefer ~/mnt/Y. The FHS says nothing about subdirectories of users' home directories so no guidance there.

These considerations alone suggest that a .BAT interpreter would at best be a kludge, as is further suggested by real world .BAT files being largely composed of commands which do not exist on Linux.

Perhaps you could write a Linux language script tailored to translate the specific contents of your logon scripts.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Logon script RHEL5 (help) cia_gov Programming 11 03-07-2011 07:41 PM
WinXP pro don't run "logon script = logon.bat" Bengt7jqb Linux - Server 2 04-13-2008 12:11 PM
run script at logon sunlinux Linux - General 4 12-29-2006 11:01 PM
Logon script icedude Linux - Newbie 5 04-19-2005 08:01 AM
Logon Script.... vamsi_samavedam Linux - Distributions 1 05-25-2004 08:46 AM


All times are GMT -5. The time now is 12:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration