LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-20-2004, 03:08 PM   #1
dgsr2002
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 2
Posts: 4

Rep: Reputation: 0
setting permissions on a file after uploading via FTP


Hey everyone, first post...

I've been using linux for about a month now, still pretty new but I enjoy learning. I'm using proftpd as my ftp server(personal use)-installed from rpm, everything is working great as far as that goes. I'm also using fedora core2-if it's even relevant.

my question is...
When I upload a file from another computer to my computer, using an ftp client, everything goes good, except when I get home I can't edit the file that I uploaded. I noticed that the permissions are faded out and there's no way to change them.

What I'm wondering is...
Do I have to change the permissions on the file before I send it with the ftp client, or if that's not possible then how do I make it to where when I send a file from a computer to my home computer I'll be able to edit it.

I can't think of any config files or anything like that I need to post, but if I should please let me know..

thanks in advance
 
Old 10-20-2004, 03:26 PM   #2
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
The files should be owned by whoever sent them there. So if you had an account named Focker, and sent the files there via Fockerís account, he should own them. That being said, I wanted a script earlier to automate permissions, and there was someone here nice enough to give me the correct command syntax for this job.


find . -type f -name ".doc" -exec chmod 777 {} \;

here is the link to that post

Last edited by 0.o; 10-20-2004 at 03:27 PM.
 
Old 10-20-2004, 03:53 PM   #3
dgsr2002
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 2
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for such a quick response, but I don't think that's what I need(of course I'm probably wrong..)

I should have been more specific...
I logged onto a windows xp computer at our lounge at school, connected to my linux ftp server w/leechftp, uploaded a file from that winxp computer to my home computer(linux), but when I got home the file was read only. The same happened when my dad sent me an MS document from his computer;read only. So how do I make it so that when I send a file from some computer that I happened to be logged on to, say the library's computer, I can come home and pick up right where I left off; full permissions that is.

thanks in advance...
 
Old 10-20-2004, 08:31 PM   #4
dgsr2002
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 2
Posts: 4

Original Poster
Rep: Reputation: 0
Question semi-solution to permissions problem

Okay I found a solution to my problem, however it's not really the ideal solution, but anyhow.

Like i stated above, the problem was that if I was using a computer, say at the library, and I wanted to save my MS word document, or anything for that matter, by uploading to my FTP server, so that when I got home I could pick up right where I left off, the permissions were all jacked up. So I go home from the library, double-click on my file and it opens and tells me that it's read only. The permissions say that the user who uploaded the file owns it, which it should, but the options for changing view and modify are grayed out.

The solution...

I found that if I renamed the document to something other than what it was uploaded as, I could then open the file that I just renamed it to and edit it. Has anyone else had this kind of experience and if so is there an easier way to fix besides going in and renaming all the files that I want to be able to read/write to.

thanks
 
Old 10-21-2004, 07:15 PM   #5
dgsr2002
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora Core 2
Posts: 4

Original Poster
Rep: Reputation: 0
Talking Even better solution

I did a whole lot of googling on permissions via ftp and finally found some stuff about the umask command, which I just happened to stumble across by reading some random web page. The defualt in proftpd was set to umask 020 which was changing the files i uploaded to 644(rw-r-r). I went in and changed the umask, very easy using gproftpd, to 000, had a test file sent by my dad and voila-the permissions were then defaulted to 664(rw-rw-r) which is what I want seen how I'm the only person using this ftp server(well and mom and dad). If anybody sees anything seriously wrong about this please let me know. Keep in mind that I don't want anonymous users connecting or any of that...this is just a personal portable "hard drive" if you will.

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
Need help regarding setting Perl and file permissions... mrbadi Programming 1 07-30-2005 04:43 PM
ftp changes file permissions! seran Linux - General 2 07-13-2005 07:34 AM
File/Folder Permissions with FTP scottpioso Linux - Security 8 03-12-2004 02:19 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
problem uploading file to ftp server hnguy Linux - Newbie 3 11-20-2002 04:16 PM


All times are GMT -5. The time now is 11:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration