Results 1 to 8 of 8

Thread: Log in user

  1. #1

    Log in user

    I want a program to log in a user, and I was wondering how I would do this with a command, taking everything as an arg, and nothing from stdin (without prompting for a password).

  2. #2
    Guest

    Re:Log in user

    su - Change user ID or become super user
    sudo, sudoedit - execute a command as another user

    You probably wanna use su or sudo. Not that unless you're root you will be prompted for a password, unless you've configured sudo for this task.

    Good luck.

  3. #3

    Re:Log in user

    I forgot to say that sudo didn't work...
    I want to completely login the user, not run commands as them.

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Log in user

    login

  5. #5

    Re:Log in user

    login wants input (the password).

  6. #6
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Log in user

    I use GDM to automatically login myself upon reboot (so that I can grab a drink after pressing power button and everything would be ready when I return). May be you can mess around with GDM's source to see how they do it?

    Sorry this is not definitive answer but something you may want to look into.

  7. #7

    Re:Log in user

    I'll definately look into it, thanks.

  8. #8

    Re:Log in user

    login -h hostname -f username
    works for my purposes

Similar Threads

  1. User Migration
    By shamjith in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 03-03-2006, 02:04 PM
  2. Help with user set up, please!
    By Chrismmm in forum Windows - General Topics
    Replies: 0
    Last Post: 05-26-2005, 04:39 PM
  3. New User - Help finding Ext USB H/D
    By rrushing in forum Redhat / Fedora
    Replies: 10
    Last Post: 01-25-2004, 03:04 AM
  4. DBM User Authentication
    By infinite_root in forum Linux - General Topics
    Replies: 4
    Last Post: 11-14-2003, 05:03 AM
  5. What's your user id?
    By ursidae in forum General Chat
    Replies: 30
    Last Post: 06-12-2002, 10:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •