Thread: login "scripts"

  1. #1
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001

    login "scripts"

    Anyone know of a way to setup a login script on a debian machine? I just want to put some of the commands I find myself exectuting everytime I login in the script. Example would be using alias to change ls to ls --color.

    Oh and I finally figured out how to properly assign mod access to directories

  2. #2
    Registered User
    Join Date
    Jul 2003
    dont you put it in the .bashrc file in the home directory.
    I think it's hiddin, but I don't know about debian.

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Thanks for the tip. From there I was able to figure out that I needed to change .bash_profile to include .bashrc (had to uncomment 3 lines).

    Got it working, thanks

  4. #4
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    another choice

    `.bashrc' script is for specific users.
    '/etc/rc.d/rc.local' script is for all users.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  5. #5
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    I guess I should be more active in these forums
    You could also edit your /etc/conf.d/local.start
    Not every distrobution has the rc scripts ex: Gentoo

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. unable to login to facebook
    By zykostar in forum C# Programming
    Replies: 4
    Last Post: 03-30-2010, 02:04 PM
  2. Login
    By brietje698 in forum C++ Programming
    Replies: 3
    Last Post: 10-07-2007, 09:51 AM
  3. Having problems with a login script...
    By Junior89 in forum C++ Programming
    Replies: 6
    Last Post: 01-06-2006, 12:05 PM
  4. login script - URGENT!!!
    By linzeeuk in forum C Programming
    Replies: 5
    Last Post: 05-05-2003, 02:26 PM
  5. Replies: 7
    Last Post: 07-19-2002, 11:49 AM