LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   anonymous ftp asking for username and password though there are none.. (https://www.linuxquestions.org/questions/linux-newbie-8/anonymous-ftp-asking-for-username-and-password-though-there-are-none-4175437752/)

SarahGurung 11-19-2012 12:36 AM

anonymous ftp asking for username and password though there are none..
 
We have anonymous ftp so that people could download useful software's but then all of a sudden it's asking for username and password when it click on that click(link for ftp is present in the website)..

I feel it's coz of the ownership and permission as the owner is root but then I'm not bale to change the owner nor the permissions of the file though i log in as root...it says read-only file..cannot change permission..

Can anyone tell me what could have gone wrong?

tshikose 11-19-2012 01:24 AM

Try
username: anonymous
password: anything_you_want

SarahGurung 11-19-2012 01:48 AM

well the question is about that..it's that m not able to change the ownership and permissions at all and username and password wasn't there b4... in logs it shows:

Code:

Nov 19 09:25:38 ftp kernel: hda: status error: status=0x7f { DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index Error }
Nov 19 09:25:38 ftp kernel: hda: status error: status=0x7f { DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index Error }

is it hardware error?

chrism01 11-19-2012 02:01 AM

Looks like HW, check df cmd and mount cmd to see if eg its still mounted and r/w enabled.
You may also want to do a disk check http://linux.die.net/man/8/smartctl

SarahGurung 11-19-2012 02:16 AM

well chrism01 can u please tell me how should be doing that?

chrism01 11-19-2012 02:33 AM

Not sure which bit you're asking about but on my system
Code:

df

Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/sdb2            72570160  8946204  59937556  13% /
tmpfs                  3900740      328  3900412  1% /dev/shm
/dev/sdb1              516040    82052    407776  17% /boot
/dev/sda6            103216884  10292000  87681676  11% /var/lib/libvirt/images

mount

/dev/sdb2 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sdb1 on /boot type ext4 (rw)
/dev/sda6 on /var/lib/libvirt/images type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

As you can see df shows what partitions/disks are available and space. mount shows filesystem types and mount status eg (rw) for read/write.

I've never used smartctl, but I'm sure you can find examples through google.

SarahGurung 11-19-2012 02:37 AM

Restarting the server worked...

I don't know what was wrong....thanks everyone..


All times are GMT -5. The time now is 01:04 PM.