LinuxQuestions.org
Visit Jeremy's Blog.
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 12-14-2010, 04:23 PM   #1
imri
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Rep: Reputation: 0
File permissions


Hi folks,

I got a centos server that i connect with ssh, the other day the ftp client was not working so as a root i transferred a folder to the server using (Fugu ftp like client for ssh).

Today my ftp program (not fugu but regular ftp program) is back and working. When try to edit something there it is giving me
Code:
Server said: .cvsignore: Operation not permitted

Error -144: remote delete failed
the reason is that i uploded the folder with ssh as root user and now regular domain owner cannot edit that folder contents.

How can I solve this problem?

I would appreciate any answer
 
Old 12-14-2010, 04:30 PM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,429

Rep: Reputation: 196Reputation: 196
As root, use chown to change the owner of the folder. Try:

Code:
$ man chown
for further info
 
Old 12-14-2010, 05:33 PM   #3
imri
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I will be doing
Code:
chown (user) (foldername)
but what would be the user name for that folder. The folder is accessed with FTP user name domain name?
 
Old 12-14-2010, 05:42 PM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
You should be able to use "chown" from the FTP prompt (assuming you're doing it in the terminal - if not, your FTP client programme should have a way to change permissions)
 
Old 12-14-2010, 05:59 PM   #5
imri
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I have done this

Code:
chown karmen:psacln /(foldername)
and it works but it doesnt set permissions for the files and folders inside (foldername) I want to set owner for all files and folders inside that directory..
 
Old 12-14-2010, 06:04 PM   #6
imri
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
this works chown -R karmensacln /(foldername)
 
Old 12-14-2010, 06:04 PM   #7
imri
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
thany you for your fast replys
 
  


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
strange (to me) behavior of file permissions when copying file warrob Linux - General 10 10-25-2009 06:13 AM
File permissions v. directory permissions Completely Clueless Linux - Newbie 7 07-09-2009 09:33 AM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 06:35 AM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 05:42 PM


All times are GMT -5. The time now is 07:00 AM.

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