This is a discussion on /etc/crontab file permissions or ownership can cause problem within the Linux software forums, part of the Linux Getting Started category; Ok my question is can wrong permissions or ownership on /etc/crontab cause problem? Here is what doc says: There are ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Ok my question is can wrong permissions or ownership on /etc/crontab cause problem?
Here is what doc says: There are some requirements for /etc/crontab file. Wong file permission can result into weird results or problems. Requirements of /etc/crontab file permission and ownership: * File must be owned by root * File must not be executable * File must not be writable by any user other than root If file permission is not correct, use commad Code:
chown 0:0 /etc/crontab chmod 0644 /etc/crontab ll /etc/crontab Code:
-rw-r--r-- 1 root root 651 2006-07-29 02:14 /etc/crontab Code:
-rwxrwxrwx 1 rakhi rakhi 651 Dec 19 07:54 crontab
__________________
There's no place like 127.0.0.1 |
| Sponsored Links | ||
|
|
|
|||
|
wrong permissions on this file shall lead to a non-root user from adding a command to run in the file, and then it shall be running with the root permissions which is everything. THIS is really not a good thing to do. Every user must not be able to add his commands to the file /etc/crontab but to his own crontab file which he does that by:
Code:
crantab -e username
__________________
LivE Free 0r DiE L!nux rul3z aLL |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Users in Bulk + Passwords and permissions | ricksd2sd | Shell scripting | 0 | 04-23-2008 01:20 PM |
| Ubuntu Linux folder permissions | myfoot | Ubuntu / Debian | 1 | 12-01-2007 09:03 PM |
| about crontab | darknet | Shell scripting | 2 | 01-04-2007 07:01 PM |
| Secure vsftpd FTP permissions on anonymous user uploads | nixcraft | Getting started tutorials | 6 | 12-20-2006 03:00 AM |
| [file.handling] problem | fahur | Shell scripting | 4 | 10-09-2006 03:59 PM |