By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,660 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,660 IT Pros & Developers. It's quick & easy.

Perl script to change ownership of folder giving error

P: 5
Hi all,

I have written one perl script to create and then change ownership of a folder in Linux platform.Folder got created ,but got error as :chown: changing ownership of folder:Operation not permitted

Since this perl script has only local user privilege ,it is not allowing to change ownership of folder.If i run script as root ,it is working fine.

But i want to run this script as local user.Is there any way to give chown privilege to local user.
I got to know that by editing Linux sudoers File , we can give limited root privileges to local user.

Please help me on how to edit sudoers File to give this privilege ...or any other method is there?
Mar 23 '10 #1
Share this Question
Share on Google+
1 Reply


Expert Mod 100+
P: 589

Post your reply

Sign in to post your reply or Sign up for a free account.