LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-18-2005, 05:28 PM   #1
Ravo
Member
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 41

Rep: Reputation: 15
gftp won´t go to /dir/.. and fstab not saving


Hi. I´m a *somewhat* newbie, having run linux for a grand total of 2 weeks now. I have two current questions:

1. I start up Gftp, put in my site, log on, and everything´s good. However, should I try to edit a file, everything is read only. The same way, if I try to go up a directory by click ¨..¨ in the directory list, I get the error message ¨Operation not permitted¨ How do I fix this?

2. Every time I restart my PC I have to log in as root to remount my Windows partition. This involves editing fstab ( add ¨/dev/hda5 /media/win_d vfat blah blah¨), making the directory /media/win, and mounting the drive. It´s getting annoying.

Also I should mention because of this I´ve been using root as my main login.
 
Old 02-19-2005, 03:41 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Now, as far as I know, FTP is meant for transferring data, not editing them on the fly.. So, cant you just download the file, make the modifications and transfer it back?

The directory up thing is probably a problem in the server's configuration. Perhaps you dont have access to the parent directory. Have you tried cd:ing into a directory, and then coming back with ..?

Onto the partition thing. Do you mean the mountpoint gets deleted, and the fstab entry revoked upon every boot? Can even RH be that odd I wonder.. Now, one could be doing something like this, if this realy is the case.
Code:
#!/bin/bash
mkdir -p /media/win_d
grep -iv "hda5" /etc/fstab > /tmp/fstab # to make _absolutely_ sure we dont get multiple lines
echo "/dev/hda5 /media/win_d vfat rw,umask=0000,exec   1   0" >> /tmp/fstab
mv /tmp/fstab /etc/fstab
mount /media/win_d && echo "Mounted succesfully"
This is a shellscript that will automate the process you just described. Just enter this in an editor, and save it under /sbin/mount_win.sh

Then as root:
Code:
chown root:root /sbin/mount_win.sh
chmod u+x /sbin/mount_win.sh
Now, when you boot up your computer, you log in as a normal user and fire up a terminal. Type:
Code:
su -c "/sbin/mount_win.sh"
# <enter your root password>
This will run the script as root, mounting the partition so that it is usable also as your user.

Now, this is a bubblegum solution, but atleast you wont have to use root as your user, that is _really_ insecure and not advisable. I find it very strange that RH would rewrite the fstab upon boot, but if that truly is the case, this will make your life easier and more secure. Let me know how it goes.. (:
 
Old 02-19-2005, 04:16 AM   #3
rsmith
Member
 
Registered: Jan 2005
Location: Arizona
Distribution: SuSE 9.3 Pro / Slackware 10.1 / WBEL 3
Posts: 57

Rep: Reputation: 15
Just a thought that you might want to check. When editing the fstab file are you using Vim? If so, after making your modifications are you using :wq to save your changes and exit? If you go back in after saving it and your modifications are gone, try using :wq! The ! will force linux to make the change to the file. The only time I've ever really see Linux disregard a change is when you try modifying a read-only file, or a file you don't have proper access to.

Like I said this is totally a n00b thing to check, but at least it eliminates the possiblity of overlooking the obvious.
 
Old 02-23-2005, 12:04 AM   #4
Ravo
Member
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 41

Original Poster
Rep: Reputation: 15
Ok, rather than beat the dead horse with a new thread I'm bringing this thread back up.

The problem with mounting the HD is fixed. No problem there, just needed a more mainstream route for editing fstab.

However, I am still not capable of a decent FTP session. In GFTP, I can connect, upload, and download, but I can not go up directories since GFTP uses relative directories instead of absolute ones, IE, using /dir/dir2/.. to go up a directory instead of just going to /dir/. Also, when I try to edit a file, I can open it, edit it, save it, and then close gedit and watch gftp do absolutely nothing.

I installed KBear, and it won't even connect to an FTP server.

I Installed IglooFTP (The static free version) and it gives me this error:
"IglooFTP: symbol lookup error: /usr/lib/libgdk-1.2.so.0: undefined symbol: XList InputDevices"

Are there any more free FTP programs out there, or is there any way to fix Kbear, Gftp, or IglooFTP?

Last edited by Ravo; 02-23-2005 at 12:14 AM.
 
Old 02-23-2005, 03:58 AM   #5
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
well, some of the best ftp clients are ftp and ncftp (;

But seriously, ftp wasnt meant for what youre trying to do. Its for transferring files, not editing them on the fly keeping the version up to date.

Have you tried the gftp problem on different servers? My guess still is that its a problem in the servers config.. Do you know what ftpd they are running?
 
Old 02-23-2005, 09:39 AM   #6
Ravo
Member
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 41

Original Poster
Rep: Reputation: 15
I've been doing IT for some time now. "On the fly" editing is a very necessary thing for me. My local virtual server is different from my Web Site's server, and I usually end up making some on the fly adjustments as necessary.

Anyhoo, I've been trying unsuccessfully to figure this out, with no luck, naturally. So I'm still screwed.
 
Old 02-23-2005, 11:00 AM   #7
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Well, I gotta admit that sometimes that feature would be nifty.. The thing is, most linux ftp clients suck.. bigtime.. There is no development in them because ftp is allready so good for the basic purpose ftp is for, transferring with high rates. ssh, scp and sftp are the ones meant for more "interactive" usage.. I myself allways make the small adjustments over ssh, directly on the server. You could allways use rsync to replace only the changed parts, but it would still be file syncing, not editing a file over ftp.

On the directory issue.. Im running proftpd and the cd .. works fine.. You still havnt answered a few questions about the problem. If you make a ftp connection to for eg user@site:/home/user/ and then try to cd .. you cannot, correct? Whatabout if you first cd to a directory allready existing there, and then cd back up with cd ..? Does this work / fail / fail with the same error? Do you have enough access rights to the directories involved? Does this happen with just one server, or multiple? Can you accomplish the cd .. with normal ftp clients like ftp or ncftp? I still think the problem is with the ftpd itself, go ahead and try the same thing at ftp.kernel.org
 
Old 02-23-2005, 05:19 PM   #8
Ravo
Member
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 41

Original Poster
Rep: Reputation: 15
Well, directory/.. works in FalseHope's FTP server. Hence, it must be my web hosts' problem. There's one thing down.

Igloo-FTP PRO works just fine. Figures the only program that does what I need it to do is the one they want me to pay for.
 
Old 04-04-2005, 07:25 AM   #9
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Its been a long time, but incase you have the subscription still on, ive stumbled upon a solution.. (; A fto client kalled kpad does exactly what youre looking for: direct working via ftp on files.. I hope this helps incase you didnt find a free solution:
http://patriot.net/~gary/
 
Old 04-22-2005, 09:51 PM   #10
Ravo
Member
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 41

Original Poster
Rep: Reputation: 15
Google loves me. =) I decided to take another shot at figuring out how to take care of this. Lo and behold, my thread is on Google!

I've downloaded Kpad and am now trying very hard to figure out how to compile it.

Alternatively, according to my sources If the text editor isn't run on the foreground, GFTP won't detect it exiting. So, I could also figure out how to make gedit run as a foreground only application. That could work, too.
 
Old 04-22-2005, 10:06 PM   #11
Ravo
Member
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 41

Original Poster
Rep: Reputation: 15
UPDATE:
Appearantly this was a bug in the last (2.0.17) version of GFTP. I uninstalled and built 2.0.18 from source. Works fine now. I feel stupid for not trying the obvious.
 
Old 04-23-2005, 06:05 AM   #12
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
good to hear a problem dissolve.. Its been bothering me from time to time, to walk out on a question without a solution..
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM
krecipes and ./configure -with-qt-dir=DIR disco rugby Linux - Software 4 06-13-2004 10:06 PM
saving and not saving sessions on desktop ergo_sum Linux - Newbie 2 09-26-2003 08:27 AM
Apache has won! vadertech Linux - General 0 12-11-2002 06:33 PM


All times are GMT -5. The time now is 08:37 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