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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-24-2003, 01:59 PM
|
#1
|
LQ Newbie
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11
Rep:
|
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
|
|
|
02-24-2003, 02:06 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
|
|
|
02-24-2003, 02:12 PM
|
#3
|
LQ Newbie
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11
Original Poster
Rep:
|
No manual entry for sudoers ....
|
|
|
02-24-2003, 02:44 PM
|
#4
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
02-24-2003, 03:18 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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, ... :}
|
|
|
02-24-2003, 03:28 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
02-24-2003, 03:28 PM
|
#7
|
LQ Newbie
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
02-24-2003, 03:35 PM
|
#8
|
LQ Newbie
Registered: Feb 2003
Distribution: RH AS 2.1 (7.2)
Posts: 11
Original Poster
Rep:
|
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
|
|
|
02-24-2003, 05:05 PM
|
#9
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-24-2003, 08:43 PM
|
#10
|
Member
Registered: Feb 2003
Distribution: Debian
Posts: 797
Rep:
|
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.
|
|
|
02-24-2003, 08:57 PM
|
#11
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
02-25-2003, 07:35 PM
|
#12
|
Member
Registered: Feb 2003
Distribution: Debian
Posts: 797
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|