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,758

    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. Access denied for user: '@192.168.0.71' (Using password: NO)
    By infinite_root in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 11-20-2008, 01:10 AM
  2. vsftpd : cannot login with non-anonymous user ...
    By debellez in forum Linux - Hardware, Networking & Security
    Replies: 8
    Last Post: 05-10-2006, 07:12 PM
  3. Create and Configure User Accounts in Windows XP
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 06:48 AM
  4. Live Communications Server 2005 Glossary
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 08:16 PM
  5. MySQL user question
    By mcdougrs in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-08-2002, 11:56 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
  •