Bekijk de volledige versie : Can't rename files on FTP
Hi,
I have some trouble with my FTP. I can't rename files on my FTP server?
When i try to rename it says:
[R] 257 "ftp_pvt/Shared/" is current directory.
[R] PASV
[R] 227 Entering Passive Mode (192,168,100,2,4,4)
[R] Opening data connection IP: 192.168.100.2 PORT: 1028
[R] LIST -al
[R] 150 OK
[R] 226 Transfer complete.
[R] List Complete: 56 bytes in 0,24 seconds (0,2 KB/s)
[R] RNFR Test
[R] 350 File exists, ready for destination name.
[R] RNTO Test2
[R] 553 Permission denied.
Rename Failure!
What is wrong? How can i fix this?
Thx :)
-Does your user have the required FTP rights (read/write/erase)?
-What filesystem are you using?
We need more info...
Edit: It looks like stupid-ftp does not support the rename commands.
Filesystem = Fat32
Ik can rename directory's.
But when i make a directory in an other directory, i can't rename?
What is my problem?
Antiloop
07-01-2005, 12:48
supply firmware version etc.. (reading faq would be nice..)
Product: WL500G
Firmware Version: 1.9.2.7
Firmware Release: 1.9.2.7-2
Antiloop
07-01-2005, 12:56
please enable Samba, and confirm that you can not rename dirs there as well
Is there a manual to get samba working?
Thx :)
please enable Samba, and confirm that you can not rename dirs there as well
I tested it at home and I confirm you can't rename a file (1.8.1.7 CR2) on a FAT32 partition. With Samba its possible. Renaming a directory works.
226 Transfer complete.
RNFR compile.txt
350 File exists, ready for destination name.
RNTO compile1.txt
553 Permission denied.
RNFR /giftwakeup-old
350 File exists, ready for destination name.
RNTO /giftwakeup-ol
250 RNTO command successful.
Antiloop
07-01-2005, 14:21
Is there a manual to get samba working?
Thx :)
http://wl500g.info/search.php?
Antiloop
07-01-2005, 14:23
I tested it at home and I confirm you can't rename a file (1.8.1.7 CR2) on a FAT32 partition. With Samba its possible. Renaming a directory works.
226 Transfer complete.
RNFR compile.txt
350 File exists, ready for destination name.
RNTO compile1.txt
553 Permission denied.
RNFR /giftwakeup-old
350 File exists, ready for destination name.
RNTO /giftwakeup-ol
250 RNTO command successful.
hm yeah possible.. I haven't used FTP for months since Samba runs nice & smoothly
anyway stupidftpd is stupid.. I'll add this to faq asap
Okey, i started samba and changes the workgroup from my computer from HOME to WORKGROUP
I can access the files, but thy are read-only!!!
I have to change smb.conf?
1. How can i change the name of the "fileserver". Now it is:
Samba 1.9.18P10 (Asus-wl500g)
Can i change this name?
2. When i edit the file /etc/smb.conf (vi /etc/smb.conf) how can i save my changes, en quit the editor vi?
And yes, i have used the SEARCH!
Thx :)
Okey, i started samba and changes the workgroup from my computer from HOME to WORKGROUP
I can access the files, but thy are read-only!!!
I have to change smb.conf?
1. How can i change the name of the "fileserver". Now it is:
Samba 1.9.18P10 (Asus-wl500g)
Can i change this name?
2. When i edit the file /etc/smb.conf (vi /etc/smb.conf) how can i save my changes, en quit the editor vi?
And yes, i have used the SEARCH!
Thx :)
You might need to search again ;)
Answers:
The visible shares are read-only. There's a hidden share too which is read/write (Share$). Also, the samba config supplied by the custom firmwares are example configs, you need to adjust them to your needs.
Oke,
The share \\192.168.100.2\Share$ is also read only.
When i open vi (vi /etc/smb.conf) i can edit the file with pressing "i"
But, how can i save the file ? And how to exit Vi
How to ad the commands
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
to the /usr/local/sbin/post-boot
I have used the search several times. I have found a lot of information. On http://wl500g.dyndns.org/ i found:
-------------------------
add the following to your /usr/local/sbin/post-boot script):
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
-------------------------
But HOW can i add this files to /usr/local/sbin/post-boot!!
someone who can help me?
Wow, easy dude, we ain't some paid helpdesk here :confused:
For a manual on vi use Google.
You can use vi to add the two lines needed for samba in the post-boot file.
On a FAT32 the Share$ dir should be writable, unless you edited the samba.conf wrongly. Also is the 192.168.1.2 your router?
I think people are not answering because they have already answered this questions many time, and using some search could give you all answer. You know what to search: you are looking for vi info. Some search tools won't show you any answer for a keyword of only 2 letters, so you have to use your brain a little bit. If the wl500g.dyndns.org page gives you info about running samba, maybe it also give info about how to modify the post-firewall file. Why should anyone rewrite info that are laready writen by someone? Do you think somebody would take the time to write an how to if he sees nobody read them?
So please, try and search before asking questions, or at least wait for an answer. Use google. All command are unix or linux command, so you can google them
use "vi howto" or "vi text edit" or "vi save" keywords.
For your information, i've already answered on the same question on a tread yesterday, so browsing the forum might help too.
!wq (means end of message ;-)
Antiloop
08-01-2005, 15:59
Wow, easy dude, we ain't some paid helpdesk here :confused:
For a manual on vi use Google.
You can use vi to add the two lines needed for samba in the post-boot file.
On a FAT32 the Share$ dir should be writable, unless you edited the samba.conf wrongly. Also is the 192.168.1.2 your router?
paid helpdesk?
well i'm paying..