-   Linux - Newbie (
-   -   file permission problems (

battles 10-12-2014 03:01 PM

file permission problems
me@my~/dummy$ cat dum.cfg > dum.cfg.bkp
-bash: dum.cfg.bkp: Permission denied

I moved a program from one server to another. Whenever I run the program to update a file, it says the above. I tried changing the file attributes to 600 and 644, but the program always gets the denial message. Anyone know how to get around this? The program is not executing from root, but I tried to give the user 'me' visudo ALL privileges, but still the error.


joe_2000 10-12-2014 05:09 PM

Who owns the file? You can check this with

ls -l
To change ownership type e.g.

chown me:me dum.cfg.bkp
Also check file attributes / ownership of the "dummy" directory

battles 10-12-2014 05:16 PM

I had completely forgotten about that ownership thing. I am sure that will fix it. Thanks.

All times are GMT -5. The time now is 01:28 PM.