New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

how to find out the user login name?


Post Reply New Thread Subscribe

 
Thread Tools
vishal.chauhan

 
Member Since: Dec 13, 2006
Posts: 13
vishal.chauhan is on a distinguished road

vishal.chauhan is offline
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.
QUOTE Thanks
ApplejustWorks

 
Member Since: Dec 28, 2003
Location: Long Island, NY
Posts: 911
ApplejustWorks is on a distinguished road
Mac Specs: 15" MacBook Pro & 23" ACD

ApplejustWorks is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Command for fetch the list of software installed | Software Development on a Mac -- What do you use? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Login Problems Willow Apple Desktops 0 12-11-2006 02:45 PM
VNC on Mac even show at login screen? amagab OS X - Apps and Games 0 10-23-2006 06:43 PM
ibook g4 user - one year later...... Computer.Geek Apple Notebooks 10 05-17-2006 11:19 AM
Show Item Info inflexion OS X - Operating System 15 10-24-2005 11:34 PM
Deleting main user? Judestone OS X - Operating System 2 08-11-2005 06:21 AM

All times are GMT -4. The time now is 01:59 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?