LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-25-2011, 12:19 AM   #1
jeesun
Member
 
Registered: Aug 2007
Location: Australia
Distribution: RedHat Enterprise
Posts: 82

Rep: Reputation: 15
How to access other users crontab as a normal user


HI

I have a requirement. As a root i can view other users crontab entries using the command "crontab -u <user> -l". But I can't get access to other user's crontab using those command. It returns me the error "crontab error must be privileged to use -u". Which i think need some configuration or some permisions. But can't figure out where to.

Please help me to find this?
 
Old 08-25-2011, 01:17 AM   #2
lystor
Member
 
Registered: May 2010
Location: Ukraine
Posts: 43

Rep: Reputation: 3
Quote:
Originally Posted by jeesun View Post
HI
It returns me the error "crontab error must be privileged to use -u". Which i think need some configuration or some permisions. But can't figure out where to.
Please help me to find this?
Hi
You can use sudo to give certain users the ability to run some commands as root.
 
Old 08-25-2011, 01:26 AM   #3
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 174
Blog Entries: 5

Rep: Reputation: 18
Well unless I'm terribly mistaken, you can't view other users' stuff unless you have root password. File permissions are the core of Unix and part and parcel of Unix security concept, and a rather effective one at that.
According to which system, a process ID accessing files must either be the owner of the files in question or "be privileged". Why, even in MS Windows you can't access other user's stuff as a regular user. So your "requirement" sounds rather strange to me (sure I can be mistaken).

man crontab:
Quote:
In this version of cron , /etc/crontab must not be writable by any user
other than root. No crontab files may be links, or linked to by any
other file. No crontab files may be executable, or be writable by any
user other than their owner.
EDITBut hey, is it not possible to attain to your goals without breaking the system?
While I was yet typing, the above comment appeared, which answers your question . Which doesn't make wrong what I've said above.

Last edited by kostya; 08-25-2011 at 01:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to append a job to a normal user's crontab from a shell script? nivedhitha Programming 3 08-26-2011 06:20 AM
how to enable crontab command for normal users? ritesh_163 Linux - General 3 11-29-2010 04:01 AM
/sbin access available to normal users SlowCoder Linux - General 5 04-23-2008 06:04 PM
permission denied in crontab -l in RHEL4,as normal user kcmakwana Red Hat 3 03-12-2008 11:37 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:22 AM.

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