login script per user /per machine

Taking care of your Linux box.

login script per user /per machine

Postby alitoday » Fri Aug 28, 2009 2:43 pm

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!"
alitoday
Naik
 
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

Re: login script per user /per machine

Postby LinuxFreaK » Sun Aug 30, 2009 6:57 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby lambda » Sun Aug 30, 2009 10:58 am

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

How can i do that?

Postby alitoday » Wed Sep 02, 2009 11:15 am

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!"
alitoday
Naik
 
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

Postby lambda » Wed Sep 02, 2009 1:07 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests