login script per user /per machine

Taking care of your Linux box.
Post Reply
alitoday
Naik
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

login script per user /per machine

Post by alitoday »

Dear users,
i have used this script for all users as.

logon script = scripts.vbs

but i i want as mentioned in samba like

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat


Actaully i want to use scripts per user and per machine, how?


Also, tell me any book that covers all these topics.
Ali
"Yes we can!"
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: login script per user /per machine

Post by LinuxFreaK »

Dear alitoday,
Salam,
alitoday wrote:i have used this script for all users as.

logon script = scripts.vbs

but i i want as mentioned in samba like

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat


Actaully i want to use scripts per user and per machine, how?


Also, tell me any book that covers all these topics.
Below link may help you.

http://www.linuxquestions.org/questions ... ipt-76234/

You can take a look into http://www.linuxhomenetworking.com

Best Regards.
Farrukh Ahmed
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

have you tried

Code: Select all

logon script = %m-%U.bat
?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
alitoday
Naik
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

How can i do that?

Post by alitoday »

how can i user logon script = %m-%U.bat ?

can u please tell in details.

Where i put different scripts, how i set path for specific user.

Is there any role of groups?

what about group script/machine script.

regards
Ali
"Yes we can!"
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

you asked how to run a script on login on a per-machine and per-user basis, and that's what i gave you to try. what do you need help with? you know what

Code: Select all

logon script = %m.bat
does and you know what

Code: Select all

login script = %U.bat
does. (and if you don't, you should.)
Where i put different scripts, how i set path for specific user.
you put them all in the same place you have your script.vbs right now.
Is there any role of groups?
i have no idea. i don't use groups.
what about group script/machine script.
i have no idea what that is.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Post Reply