these are the details of etika.sh -rw-rw-r--. 1 etika etika 83 2011-04-10 12:05 etika.sh
contents of etika.sh chown abc:abc /home/etika/Desktop/etika.txt ls -l /home/etika/Desktop/etika.txt details of etika.txt file -rwxrwxrwx. 1 etika etika 83 2011-04-10 12:04 etika.txt i have made etika as sudoers now i ran my script etika@etika Desktop]$ sh etika.sh chown: changing ownership of `/home/etika/Desktop/etika.txt': Operation not permitted -rwxrwxrwx. 1 etika etika 83 2011-04-10 12:04 /home/etika/Desktop/etika.txt i wanted this to happen where abc is also a user on my system -rwxrwxrwx. 1 abc abc 83 2011-04-10 12:04 /home/etika/Desktop/etika.txt why its saying operation not permitted i have made etika as a sudoer then why still it is showing problem even i tried by changing the ownership of etika.sh to root [etika@etika Desktop]$ sudo chown root:root etika.sh [sudo] password for etika: [etika@etika Desktop]$ ls -l etika.sh -rw-rw-r--. 1 root root 83 2011-04-10 12:05 etika.sh [etika@etika Desktop]$ sh etika.sh chown: changing ownership of `/home/etika/Desktop/etika.txt': Operation not permitted -rwxrwxrwx. 1 etika etika 83 2011-04-10 12:04 /home/etika/Desktop/etika.txt still there is a problem i hope i have stated my problem clearly now and if u think its a newbie question please don't answer it -- LUG@IITD - http://lug-iitd.org/Footer
