LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-10-2008, 03:22 AM   #1
kcmakwana
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, 05:33 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 47
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 http://en.wikipedia.org/wiki/Sudo for more info.
 
Old 03-11-2008, 07:21 PM   #3
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,770
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
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-12-2008, 11:37 PM   #4
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon
Posts: 276

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


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crontab - permission denied moreni Linux - General 3 10-23-2009 01:43 PM
X no longer working as normal user - permission denied vharishankar Debian 4 07-15-2006 12:36 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 02:05 PM
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM
crontab failure: permission denied trying to run script hedpe Linux - Software 5 05-03-2005 07:07 PM


All times are GMT -5. The time now is 04:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration