Results 1 to 18 of 18

Thread: start the mysql service and run commands

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: start the mysql service and run commands

    Quote Originally Posted by cbarmpar View Post
    But how about if my programm asked for a su password from the user and the execute the command as a root?
    That's what "use su" means.

  2. #2
    Join Date
    Aug 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    13

    Default Re: start the mysql service and run commands

    Yes but the question is not what su means. The question is if i can run a command as a su (and hence root).

    I ment to say that if it is possible for a user to enter the su/root password and then run a command as a su/root user from my program

    Regards.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: start the mysql service and run commands

    Quote Originally Posted by cbarmpar View Post
    I ment to say that if it is possible for a user to enter the su/root password and then run a command as a su/root user from my program
    Yes, you can.

  4. #4
    Join Date
    Aug 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    13

    Default Re: start the mysql service and run commands

    Many thanks for the reply friend.

    Can you please provide me with a sample code to demonstrate that?

    Regards.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: start the mysql service and run commands

    Take a look at kdesu sources.

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
  •  
Qt is a trademark of The Qt Company.