Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Login script
azler
post Aug 12 2008, 04:41 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 11-August 08
Member No.: 13,606



How would i go about making a log in script?
that when ever you log in checks who is logging it, and if its a certain username its says some thing to them eg:
login:test
passwd:****
****Your not bob, shame on you *****

so when you login its knows you have not logged in as bob and says a message to you.
Go to the top of the page
 
+Quote Post
azler
post Aug 14 2008, 12:24 PM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 8
Joined: 11-August 08
Member No.: 13,606



Any one?, can some one at least tell me the file delas with login so ic an try to edit it?
Go to the top of the page
 
+Quote Post
michaelk
post Aug 14 2008, 01:35 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



/etc/profile file sets environment variables and runs commands for all users when they login.
Individual user startup scripts are located in $/HOME/.profile.

Depending on the desktop i.e Gnome or KDE you can also set them up to run commands when a session starts.

Assumes you are using bash and this is for some legitimate use.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 01:07 PM