03-25-2003
Thanks lads. It worked a treat.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I change the password from an ftp user account on a ssh server?
Please give me simple instructions for a users who hasn't a lot of experience.
:D
Just the words in form of a list thanks a lot. (1 Reply)
Discussion started by: m.seidenberg
1 Replies
2. UNIX for Dummies Questions & Answers
If we set up FTP only users who can't log in with a shell (/bin/false type of shell) and set them up with a default password, like abc123 or something not secure, is there any way for the user to change their own password once they get on the system? (2 Replies)
Discussion started by: LordJezo
2 Replies
3. Shell Programming and Scripting
I know the typical way to script automate an ftp session is to pass all of the commands to ftp, with something 'like' the following:
echo USER $user
echo PASS $pass
My question concerns other methods or tricks people have used so that the username and ESPECIALLY the password are... (7 Replies)
Discussion started by: joeyg
7 Replies
4. HP-UX
Hi,
In my HP-UX, when I used cat /etc/passwd,
ferdaus:*:198:20:ferdaus,pbapp,04-2013186,:/home/ferdaus:/usr/bin/sh
pbapp:*:110:20:superadmin,penang,,:/home/pbapp:/usr/bin/sh
May I know why * is in password part? There is no /etc/shadow files.
Can I revert back /etc/passwd to show an... (6 Replies)
Discussion started by: aldosfox
6 Replies
5. Shell Programming and Scripting
hi all
i am very new to unix. we had the below scenior
test.bat file which contains
ftp -s:logfiles.scr servername
logfiles.scr contains
username
password
cd path
get file
bye
We had n number of batch(.bat files). which is having the same kind of scr file pointing... (10 Replies)
Discussion started by: nh1
10 Replies
6. UNIX for Advanced & Expert Users
HI all,
I need to post some files on to a clients machine and they said we can ftp without username and password. I do the same as a command line it works ftp <hostname>. but when I do that through a script it asks for user name and pasword.
Can any one help me how to do a file ftp.
... (4 Replies)
Discussion started by: umathurumella
4 Replies
7. Shell Programming and Scripting
Hi
In my shell script I am generating one text file and this text file I want to place in Mount point. THis mount point is havig access to Windows.
I want to put the file in this mount point by using FTP rather normal cp or mv command from my shell script.
This is in order to prevent... (5 Replies)
Discussion started by: shekharjchandra
5 Replies
8. Shell Programming and Scripting
hi,
i want to setup a password less FTP to a remote server so that i can ftp to a remote server without the password.
i have setup a passwordless ssh and i am able to use scp commands to connect to the remote server without asking for the password. but when i try to ftp to the same remote... (6 Replies)
Discussion started by: Little
6 Replies
9. UNIX for Dummies Questions & Answers
Dear Masters,
I usually run bash to get file from ftp using command below (user : nobody, password : guest)
#!/bin/bash
cd /xx/xy/prog
FILE="list_country.xls"
/usr/bin/ftp -in 1.2.116.12 << END
user nobody guest
ascii
cd /XYZ/ABC
binary
get $FILE
quit
END
But in this case,... (9 Replies)
Discussion started by: radius
9 Replies
LEARN ABOUT LINUX
pam_ftp
PAM_FTP(8) Linux-PAM Manual PAM_FTP(8)
NAME
pam_ftp - PAM module for anonymous access module
SYNOPSIS
pam_ftp.so [debug] [ignore] [users=XXX,YYY,...]
DESCRIPTION
pam_ftp is a PAM module which provides a pluggable anonymous ftp mode of access.
This module intercepts the user's name and password. If the name is ftp or anonymous, the user's password is broken up at the @ delimiter
into a PAM_RUSER and a PAM_RHOST part; these pam-items being set accordingly. The username (PAM_USER) is set to ftp. In this case the
module succeeds. Alternatively, the module sets the PAM_AUTHTOK item with the entered password and fails.
This module is not safe and easily spoofable.
OPTIONS
debug
Print debug information.
ignore
Pay no attention to the email address of the user (if supplied).
ftp=XXX,YYY,...
Instead of ftp or anonymous, provide anonymous login to the comma separated list of users: XXX,YYY,.... Should the applicant enter one
of these usernames the returned username is set to the first in the list: XXX.
MODULE TYPES PROVIDED
Only the auth module type is provided.
RETURN VALUES
PAM_SUCCESS
The authentication was successful.
PAM_USER_UNKNOWN
User not known.
EXAMPLES
Add the following line to /etc/pam.d/ftpd to handle ftp style anonymous login:
#
# ftpd; add ftp-specifics. These lines enable anonymous ftp over
# standard UN*X access (the listfile entry blocks access to
# users listed in /etc/ftpusers)
#
auth sufficient pam_ftp.so
auth required pam_unix.so use_first_pass
auth required pam_listfile.so
onerr=succeed item=user sense=deny file=/etc/ftpusers
SEE ALSO
pam.conf(5), pam.d(5), pam(7)
AUTHOR
pam_ftp was written by Andrew G. Morgan <morgan@kernel.org>.
Linux-PAM Manual 06/04/2011 PAM_FTP(8)