LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2014, 03:01 PM   #1
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 236

Rep: Reputation: Disabled
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.
 
Old 10-12-2014, 05:09 PM   #2
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Arch, Debian
Posts: 859

Rep: Reputation: 245Reputation: 245Reputation: 245
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

Last edited by joe_2000; 10-12-2014 at 05:10 PM. Reason: typo
 
Old 10-12-2014, 05:16 PM   #3
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 236

Original Poster
Rep: Reputation: Disabled
I had completely forgotten about that ownership thing. I am sure that will fix it. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ext4 - permission to create/modify a file without 'delete' permission BeachHead Linux - General 4 06-08-2014 08:34 PM
File & Folder Permission and Ownership permission error in Cloud storage. rhcekumaran Linux - Newbie 3 06-14-2013 05:41 AM
File permission problems? lukthree Linux - Newbie 2 06-04-2008 05:12 PM
file permission problems on nfs-share Falafel Linux - Networking 3 12-05-2006 02:57 PM
Problems unzipping a *.tar.gz file --permission denied? mfarley Linux - Newbie 3 07-22-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration