Query Regarding file permissions.

Anmol Bedi anmolbedi at gmail.com
Thu May 10 12:24:54 UTC 2007


Check permissions that your user is allowed to sudo.
Check /etc/sudoers

Regards
Anmol Bedi
RHCT

-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com]
On Behalf Of Ravi R.S
Sent: Thursday, May 10, 2007 4:30 PM
To: redhat-list at redhat.com
Subject: Query Regarding file permissions.

Hi all,

1. I have logged into a machine as ravi "non root user" and created a file
called "schedule.out"(It has some content).
2. I have one more file as "root.txt", where the "non root users" will not
have permissions to edit this file.

When I execute the following command

"sudo cat .schedule.out >> /var/spool/cron/root.txt"

I am getting error as "/var/spool/cron/root.txt: Permission denied"

But how can I make it to write as a "non root user".

Your help will be appreciated.

Thanks & Regards,
Ravi
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged
information. In 
case you are not the original intended Recipient of the message, you must
not, directly or 
indirectly, use, Disclose, distribute, print, or copy any part of this
message and you are 
requested to delete it and inform the sender. Any views expressed in this
message are 
those of the individual sender unless otherwise stated. Nothing contained in
this message 
shall be construed as an offer or acceptance of any offer by Sasken
Communication 
Technologies Limited ("Sasken") unless sent with that express intent and
with due 
authority of Sasken. Sasken has taken enough precautions to prevent the
spread of 
viruses. However the company accepts no liability for any damage caused by
any virus 
transmitted by this email

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list