permission denied trying to FTP
am 04.03.2004 15:41:09 von Adam Lang
Hello. Having a problem that I haven't been able to find out exactly why it
is happening.
I am logged in as superuser and in the home directory. I open ftp to
another one of my servers using a non-su account on the other server (which
the account name exists on originating server as well).
I do a send using absolute path to the file in a different directory. I get
permission denied. Now, if I cd to the directory the file resides then
start ftp, I can send it fine.
Any ideas?
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: permission denied trying to FTP
am 04.03.2004 17:38:15 von Glynn Clements
Adam Lang wrote:
> Hello. Having a problem that I haven't been able to find out exactly why it
> is happening.
>
> I am logged in as superuser and in the home directory. I open ftp to
> another one of my servers using a non-su account on the other server (which
> the account name exists on originating server as well).
>
> I do a send using absolute path to the file in a different directory. I get
> permission denied. Now, if I cd to the directory the file resides then
> start ftp, I can send it fine.
>
> Any ideas?
If you "put" a file using an absolute path, it uses that path for both
the local and remote filenames, so the account needs permission to
write to the specified directory on the server.
--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: permission denied trying to FTP
am 04.03.2004 17:54:13 von Adam Lang
I just "sort of" figured it out just a second ago.
This gives me permission denied:
ftp
cd /home/www/squid
send /usr/adam_utils/webreport.tar
This works:
ftp
cd /home/www/squid
send /usr/adam_utils/webreport.tar ./webreport.tar
Not sure why. The server is wu-ftpd 2.6.1
----- Original Message -----
From: "Fred Gates"
To: "Adam Lang"
Sent: Thursday, March 04, 2004 11:04 AM
Subject: Re: permission denied trying to FTP
> what ftpd are you using? what permissions? what directory? send me a
> little log file of what you do and i will try to help you out. seems like
> just a wrong permissions on either the directory or the ftpd config needs
> to be modified.
>
> > Hello. Having a problem that I haven't been able to find out exactly
why
> > it
> > is happening.
> >
> > I am logged in as superuser and in the home directory. I open ftp to
> > another one of my servers using a non-su account on the other server
> > (which
> > the account name exists on originating server as well).
> >
> > I do a send using absolute path to the file in a different directory. I
> > get
> > permission denied. Now, if I cd to the directory the file resides then
> > start ftp, I can send it fine.
> >
> > Any ideas?
> >
> > Adam Lang
> > Systems Engineer
> > Rutgers Casualty Insurance Company
> > http://www.rutgersinsurance.com
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-admin"
in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
>
> --
> dabozz@sdf.lonestar.org
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html