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.


Sign Up Now
> Login script
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:
****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
Start new topic
post Aug 14 2008, 01:35 PM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
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

Posts in this topic

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: 25th June 2018 - 06:59 AM