Query Regarding file permissions.

Ravi R.S raviraj at sasken.com
Thu May 10 10:59:37 UTC 2007


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




More information about the redhat-list mailing list