Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 03-10-2008, 04:22 AM   #1
LQ Newbie
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
Question permission denied in crontab -l in RHEL4,as normal user

I have installed RHEL4 recently,created new user feapadmin. feapadmin is a member of group feap,bin. most commands avaibale in /usr/bin are giving same error permission denied when I loggd in as feapadmin,it works fine in root. to backup to tap, iused comand tar cvf /dev/st0 /usr2
but got the same error permission denied. also tried crontab -l but displyaing msg. permission denied.(Note that I have desabled SELINUX). firewall is also turnd off. awaiting good solution. thx.
Old 03-11-2008, 06:33 PM   #2
harry edwards
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
I would implement sudo. Sudo (su "do") allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) command. Using sudo you can run the backup command as feapadmin with root privileges.

See for more info.
Old 03-11-2008, 08:21 PM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,274
Blog Entries: 10

Rep: Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847
RHEL4 doesn't require sudo to do crontab for users and most commands. (Of course the crontab updated will be the user's crontab rather than root's.)

Was SELINUX disabled during install or afterwards? If afterwards you have to reboot to make it take effect.

The fact you're getting permission denied suggests there is an issue with permissions on /usr/bin or the executables you're trying to execute there.
As root do ls -ld /usr /usr/bin /usr/bin/crontab and verify permissions are read on the first two for all users and read and execute on the last one for all users.
Old 03-13-2008, 12:37 AM   #4
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
Add the username to trusted in /etc/group.


denied, permission

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
Crontab - permission denied moreni Linux - General 3 10-23-2009 02:43 PM
X no longer working as normal user - permission denied vharishankar Debian 4 07-15-2006 01:36 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 03:05 PM
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 10:20 AM
crontab failure: permission denied trying to run script hedpe Linux - Software 5 05-03-2005 08:07 PM

All times are GMT -5. The time now is 12:16 PM.

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