Find the answer to your Linux question:
Results 1 to 5 of 5
How to execute the "Date -s" linux command as non-root/non-sudoer in Ubuntu?...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    3

    execute Date command non root/non sudoer

    How to execute the "Date -s" linux command as non-root/non-sudoer in Ubuntu?

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Hello and welcome!

    You must have root or sudo permissions to alter the date on a machine under Linux.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    3
    isn't there any hack to achieve this as a normal user?

    or is it possible that the root can give permission to the normal user to execute this command?

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    You can take a look at using the settimeofday command, but I believe you'll still need root permissions to use it:

    settimeofday(2): get/set time - Linux man page
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Just Joined!
    Join Date
    Aug 2011
    Posts
    3
    I need a way to execute without root permission

Posting Permissions

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