LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2003, 01:59 PM   #1
mriolo
LQ Newbie
 
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11

Rep: Reputation: 0
Question Remote Date Changing


I manage a software development network, where the developers have a need to frequently (more than 10 times a day) change the system date. From my understanding, correct me if I'm wrong, only root (or a uid 0) can change the system date. I need a solution to allow users to change the date without having root access or equivalence. I have an idea that I could use a user executable script, to generate a file with their date change in it. Then using a second script looking for that file and reading it's contents continually (or close to it), execute the date change as root. Of course, I don't know how to do this, or if it's possible ... ?
Any ideas?

RH AS 2.1 (7.2)

Thanks in advance,
Matt
 
Old 02-24-2003, 02:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Code:
man sudoers
Cheers,
Tink
 
Old 02-24-2003, 02:12 PM   #3
mriolo
LQ Newbie
 
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11

Original Poster
Rep: Reputation: 0
No manual entry for sudoers ....
 
Old 02-24-2003, 02:44 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Ummm...I'll probably get chewed out for this one but there is another way to do it besides using sudoers. What you can do is assign the date command to a different group(i.e. wheel). Then add all the people you want to have access to the date command to the wheel group. Then chmod wheel so that it has group executable permissions.

A quick and dirty way to get things done. Most people prefer sudoers. They say it is more secure although I don't know why.
 
Old 02-24-2003, 03:18 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by Crashed_Again

A quick and dirty way to get things done. Most people prefer sudoers. They say it is more secure although I don't know why.
Because wheel might have a bunch of permissions you're
not always aware of? ;}

Cheers,
Tink

P.S.: Rocks, stones, pebbles, ... :}
 
Old 02-24-2003, 03:28 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Not aware of? Isn't that your job as an admin to BE aware!

Last edited by Crashed_Again; 02-24-2003 at 03:34 PM.
 
Old 02-24-2003, 03:28 PM   #7
mriolo
LQ Newbie
 
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11

Original Poster
Rep: Reputation: 0
Tink,

I see an rpm available for sudo 1.6.6 (i386) - It is designated for RH 8.0 - should there be any problem with this on AS 2.1 (7.2 Kernel)?

Thanks,
Matt

Last edited by mriolo; 02-24-2003 at 03:29 PM.
 
Old 02-24-2003, 03:35 PM   #8
mriolo
LQ Newbie
 
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11

Original Poster
Rep: Reputation: 0
Crashed,

How does changing the group get around the fact that the users can't change the date ... ? They already can execute the date command, they just cant change it. Am I missing something?

Thanks,
Matt
 
Old 02-24-2003, 05:05 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi Matt!

Quote:
Originally posted by mriolo
sudo 1.6.6 (i386) - It is designated for RH 8.0 - should there be any problem with this on AS 2.1 (7.2 Kernel)?

Thanks,
Matt
Sorry, I'm not too good when it comes to knowing
dependencies for other than my distro of choice (Slack)
... but if you go to rpmfind I'm almost certain
you'll find a package for your specific distro.

Cheers,
Tink
 
Old 02-24-2003, 08:43 PM   #10
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Originally posted by Crashed_Again
A quick and dirty way to get things done. Most people prefer sudoers. They say it is more secure although I don't know why.
Because the wheel group is one idea that linux should have not taken from unix...although sudo does fix it. Actually, the problem with a wheel group is the idea that some people just have more rights over others WHILE sudo just gives you all the commands you need to work and no more.
 
Old 02-24-2003, 08:57 PM   #11
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Quote:
the problem with a wheel group is the idea that some people just have more rights over others WHILE sudo just gives you all the commands you need to work and no more.
Isn't giving certain users access to certain commands through sudo giving some people more rights then others?

I'm not going to beat this one into the ground because I really think this is a matter of preference.
 
Old 02-25-2003, 07:35 PM   #12
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Originally posted by Crashed_Again
Isn't giving certain users access to certain commands through sudo giving some people more rights then others?

I'm not going to beat this one into the ground because I really think this is a matter of preference.
if you let me, I'd like to clarify myself.
User1 may be sysadmin and need to do backups
User2 may be sysadmin and need to deal with users, root access- but for different reasons.

so a wheel group is created that allows user1 and user2 to do their job: BUT, this also means user2 has access to stuff only user1 needs, and vice versa.

Now, I understand that these example may be bad, but the idea remains the same. Sudo, on the other hand, will not make a "general, fit all" group, but instead give each user only the tools one needs, and no more.

the distinction may not seem big, but it does exist. often sudo is not the best solution - yet sometimes it is - but that's the power of *nix: use the right tool for the right job.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing system date and time from KDE yapp Linux - General 4 04-17-2005 03:40 AM
Changing System Date Format to DD/MM/YY On RHEL3? krishvij Linux - Newbie 2 03-16-2005 06:58 AM
Changing the date slowly mearley Linux - Newbie 2 12-31-2004 05:07 AM
Changing the date mad_ady Solaris / OpenSolaris 3 12-19-2004 03:50 PM
Date Changing mriolo Linux - Networking 1 02-24-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration