LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file permission problems (https://www.linuxquestions.org/questions/linux-newbie-8/file-permission-problems-4175521880/)

battles 10-12-2014 02: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.

Thanks.

joe_2000 10-12-2014 04:09 PM

Who owns the file? You can check this with
Code:

ls -l
To change ownership type e.g.
Code:

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

battles 10-12-2014 04: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 04:04 PM.