07-04-2012
@jlliagre
Hmm. There was a recent post from someone who had a dollar sign in their password. Try it on your version of Solaris, it might work or it might not. Depends on the version of Solaris and the context.
A hash sign in a password is fun. Try it.
The password-length issue is nothing new.
Let's see what Solaris version the O/P posts.
Let's see if the O/P didn't type the password.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a simple script that is trying to put a file that resides on a local machine to a remote machine. It runs fine manually but does not complete when scheduling to run in cron. Here is what the script looks like. Any idea what I am doing wrong here?
#!/bin/ksh
cd /path
sftp... (4 Replies)
Discussion started by: ewilson0265
4 Replies
2. UNIX for Dummies Questions & Answers
hi,
I have a script that will automatically login into a server and get a file. it is working fine if i run it on a command line. however, when i tried to run it as a cron job, it is not working. what should i do?
set timeout -1
spawn /usr/bin/sftp user1@server1
match_max 100000
expect... (3 Replies)
Discussion started by: tungaw2004
3 Replies
3. Shell Programming and Scripting
Hi All:cool:,
i tried to automate SFTP process after passwordless authendication.
Stil i am getting error...
Can anyone help....
-------------------
sample code below
-------------------
sftp -v $mdskk@100.4.4.75 << EOF
cd /data
mget *.tar.gz
bye
EOF... (2 Replies)
Discussion started by: senthil_seera
2 Replies
4. Linux
Dear all,
I am totally despaired and puzzled.
Using Filezilla under Windows under the same network as our Linux servers is working. Using FTP command-line client under any of our Linux debian servers is not working ! I tried with different FTP servers -> same problem !
All commands are... (12 Replies)
Discussion started by: magix_ch
12 Replies
5. UNIX for Advanced & Expert Users
I'm modifying some code to SFTP files because the remote servername and user are changing. The keys have been correctly installed and I'm using the -B option to automate the actions following connection e.g. cd, put etc. This is all working nicely. However, when I wrap this up to call it from a... (0 Replies)
Discussion started by: JerryHone
0 Replies
6. UNIX for Advanced & Expert Users
Hello -
I have a production stream that is scheduled with cron to run each Monday morning. The jobs in the stream perform tasks including
FTP get, load to a DB table, and report processing.
About a month ago I was directed to begin using sftp in these jobs and since then the jobs... (12 Replies)
Discussion started by: PatrickPurfield
12 Replies
7. Shell Programming and Scripting
Dears,
I am new to linux scripting and I was look for a way to auto login to a server using sftp to download a file.
I found one and it is working fine. But i don't know the meaning of <<EOF in the code. Any one explain it to me:
#!/bin/sh
HOST=yourservername
USER=yourusername ... (1 Reply)
Discussion started by: torabi
1 Replies
8. Red Hat
What is wrong with this sftp command being used in one line:
sftp /Data/SEmisstn.gz lsmsadit@144.226.213.23:/test/lsms.SEmisstn.gz
The ssh key is already setup. The node is valid and i can ssh to it as well as do a manual step by step sftp to the server. However, for some odd reason, i... (10 Replies)
Discussion started by: mrn6430
10 Replies
9. Linux
Hi Folks,
I am trying to copy a directory along with sub-directories to SFTP server.
I have connected to SFTP and tried to run the below command:
sftp> get -r abc/*
It is throwing the error Invalid flag -r
Can you please let me know the ways to copy a directory from Local to SFTP
... (1 Reply)
Discussion started by: kirans.229
1 Replies
10. Shell Programming and Scripting
hi Team,
I am connecting from one (A) linux server to another(C)/any linux server by sftp
on A linux server:
sftp userid@C
password:
mget is Not working fine
I am using mget to pull the files. it shows mget as invalid command.
But from (B) Linux server to (C) /to Any server Linux... (15 Replies)
Discussion started by: johnsnow
15 Replies
LEARN ABOUT OPENSOLARIS
pam_smb_passwd
pam_smb_passwd(5) Standards, Environments, and Macros pam_smb_passwd(5)
NAME
pam_smb_passwd - SMB password management module
SYNOPSIS
pam_smb_passwd.so.1
DESCRIPTION
The pam_smb_passwd module enhances the PAM password management stack. This functionality supports the changing or adding of SMB passwords
for local Solaris users. The Solaris CIFS server uses SMB passwords to authenticate connected Solaris users. This module includes the
pam_sm_chauthtok(3PAM) function.
The pam_sm_chauthtok() function accepts the following flags:
PAM_PRELIM_CHECK
Always returns PAM_IGNORE.
PAM_SILENT
Suppresses messages.
PAM_UPDATE_AUTHTOK
Updates or creates a new CIFS local LM/NTLM hash for the user that is specified in PAM_USER by using the authentication information
found in PAM_AUTHTOK. The LM hash is only created if the smbd/lmauth_level property value of the smb/server service is set to 3 or
less. PAM_IGNORE is returned if the user is not in the local /etc/passwd repository.
The following options can be passed to the pam_smb_passwd module:
debug
Produces syslog(3C) debugging information at the LOG_AUTH or LOG_DEBUG level.
nowarn
Suppresses warning messages.
FILES
/var/smb/smbpasswd
Stores SMB passwords for Solaris users.
ERRORS
Upon successful completion of pam_sm_chauthtok(), PAM_SUCCESS is returned. The following error codes are returned upon error:
PAM_AUTHTOK_ERR
Authentication token manipulation error
PAM_AUTHTOK_LOCK_BUSY
SMB password file is locked
PAM_PERM_DENIED
Permissions are insufficient for accessing the SMB password file
PAM_SYSTEM_ERR
System error
PAM_USER_UNKNOWN
User is unknown
ATTRIBUTES
See the attributes(5) man page for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT Level |MT-Safe with exceptions |
+-----------------------------+-----------------------------+
SEE ALSO
smbd(1M), syslog(3C), libpam(3LIB), pam(3PAM), pam_chauthtok(3PAM), pam_sm(3PAM), pam_sm_chauthtok(3PAM), pam.conf(4), attributes(5)
NOTES
The interfaces in libpam(3LIB) are MT-Safe only if each thread within the multi-threaded application uses its own PAM handle.
The pam_smb_passwd.so.1 module should be stacked following all password qualification modules in the PAM password stack.
SunOS 5.11 29 Apr 2008 pam_smb_passwd(5)