Results 1 to 2 of 2
  1. #1
    how to find out the user login name?

    Member Since
    Dec 13, 2006
    Posts
    13
    Question how to find out the user login name?
    Hi All,

    I m using qt On my MAC Intel.
    I want the detail of the user login through programming that is want to know looged user name and permissions.
    Actually I want that the user login as root should be able to run the application other user will not able to do that.

    I also want some system information like OS Information and System type whether it is power pc or Intel through programming.

    If some one knows how I can do that then plz help me out.

    Thanks.

  2. #2
    how to find out the user login name?

    Member Since
    Dec 28, 2003
    Location
    Long Island, NY
    Posts
    911
    Specs:
    15" MacBook Pro & 23" ACD
    NSString *shortname = NSUserName();
    NSString *fullUsername = NSFullUserName();

    You'll have to do a bit of research for the permission and architecture stuff --- need a bit of context before I help you there.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User login oddness
    By Snorky in forum OS X - Operating System
    Replies: 0
    Last Post: 07-01-2009, 01:14 AM
  2. User Login Audit
    By Paul Pena in forum OS X - Operating System
    Replies: 1
    Last Post: 06-18-2008, 05:56 PM
  3. Freezing between user login?
    By rockworthy in forum OS X - Operating System
    Replies: 1
    Last Post: 04-15-2008, 04:16 PM
  4. User login
    By mknabster in forum OS X - Operating System
    Replies: 3
    Last Post: 10-28-2007, 05:37 PM
  5. Not able to login to new user account
    By jfine427 in forum OS X - Operating System
    Replies: 8
    Last Post: 01-14-2007, 09:30 PM

Posting Permissions

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