- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Pam ftpd logon error HP-UX 11.11
Operating System - HP-UX
1752295
Members
4465
Online
108786
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 05:38 AM
тАО08-10-2010 05:38 AM
Hi,
We were getting these errors in syslog:
ftpd[11724]: pam_open_session: General
Commercial Security error.
And the user couldn't log in, we found in /tcb
the user had a _t file created:
/tcb/files/auth/m> ls -l
-rw-rw-r-- 1 root root 305 Aug 1 02:35 manc
---------- 1 root root 0 Aug 1 02:35 manc-t
We deleted the file, and the user could log in again via ftp with no problems.
My question is, do you now why this file gets created?, i had never seen it before
We were getting these errors in syslog:
ftpd[11724]: pam_open_session: General
Commercial Security error.
And the user couldn't log in, we found in /tcb
the user had a _t file created:
/tcb/files/auth/m> ls -l
-rw-rw-r-- 1 root root 305 Aug 1 02:35 manc
---------- 1 root root 0 Aug 1 02:35 manc-t
We deleted the file, and the user could log in again via ftp with no problems.
My question is, do you now why this file gets created?, i had never seen it before
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 07:01 AM
тАО08-10-2010 07:01 AM
Solution
This looks like a lock file, created by passwd, modprpw or a similar command to indicate it's currently modifying the user's information.
Normally such a lock file exists only for a very short time (less than a second for modprpw), so it's not a common sight to see. It might have been left if the command was aborted via kill -9 or a crash.
You might want to investigate what was happening on the system at the time corresponding to the file's timestamp: at 02:35 on August 1st. Was the system rebooted, or were there any scheduled changes at that time?
MK
Normally such a lock file exists only for a very short time (less than a second for modprpw), so it's not a common sight to see. It might have been left if the command was aborted via kill -9 or a crash.
You might want to investigate what was happening on the system at the time corresponding to the file's timestamp: at 02:35 on August 1st. Was the system rebooted, or were there any scheduled changes at that time?
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 12:24 AM
тАО08-11-2010 12:24 AM
Re: Pam ftpd logon error HP-UX 11.11
Yes, it's a temp file in wich it writes the changes the commands(modprpw,passwd) makes to the file, and then renames it to the original name without the _t
here the output of tusc:
open("/tcb/files/auth/j/jnj-t", O_WRONLY|O_CREAT|O_TRUNC, 0666) ....................................................................................... = 8
ioctl(8, TCGETA, 0x77ffb738) ............................................................................................................................... ERR#25 ENOTTY
write(8, "j n j : u _ n a m e = ".., 340) ........................................................................................................ = 340
close(8) ................................................................................................................................................... = 0
rename("/tcb/files/auth/j/jnj-t", "/tcb/files/auth/j/jnj") ....................................................................................... = 0
open("/tcb/files/auth/j/jnj", O_RDONLY, 040100)
When the file exists, the passwd command for example sleeps, until the file doesn't exist:
....................................................................................................... = 8stat("/tcb/files/auth/j/jnj-t", 0x77ffad60) ........................................................................................................... = 0
nanosleep(0x77ffadc8, NULL) ................................................................................................................................ = 0
stat("/tcb/files/auth/j/jnj-t", 0x77ffad60) ........................................................................................................... = 0
nanosleep(0x77ffadc8, NULL) ................................................................................................................................ = 0
If for some reason(crash) the file remains, after the command finishes it will block subsequent logons:
this is a tusc of the ftpd daemon, and as you can see, it's the same, it sleeps wainting for the file to disappear:
[19513] stat("/tcb/files/auth/j/jnj-t", 0x77ff61d0) ................................................................................................... = 0
[19513] nanosleep(0x77ff6238, NULL) ........................................................................................................................ = 0
[19513] stat("/tcb/files/auth/j/jnj-t", 0x77ff61d0) ................................................................................................... ERR#2 ENOENT
[19513] open("/tcb/files/auth/j/jnj", O_RDONLY, 0666) ................................................................................................. = 6
[19513] fcntl(6, F_SETFD, 1) ............................................................................................................................... = 0
here the output of tusc:
open("/tcb/files/auth/j/jnj-t", O_WRONLY|O_CREAT|O_TRUNC, 0666) ....................................................................................... = 8
ioctl(8, TCGETA, 0x77ffb738) ............................................................................................................................... ERR#25 ENOTTY
write(8, "j n j : u _ n a m e = ".., 340) ........................................................................................................ = 340
close(8) ................................................................................................................................................... = 0
rename("/tcb/files/auth/j/jnj-t", "/tcb/files/auth/j/jnj") ....................................................................................... = 0
open("/tcb/files/auth/j/jnj", O_RDONLY, 040100)
When the file exists, the passwd command for example sleeps, until the file doesn't exist:
....................................................................................................... = 8stat("/tcb/files/auth/j/jnj-t", 0x77ffad60) ........................................................................................................... = 0
nanosleep(0x77ffadc8, NULL) ................................................................................................................................ = 0
stat("/tcb/files/auth/j/jnj-t", 0x77ffad60) ........................................................................................................... = 0
nanosleep(0x77ffadc8, NULL) ................................................................................................................................ = 0
If for some reason(crash) the file remains, after the command finishes it will block subsequent logons:
this is a tusc of the ftpd daemon, and as you can see, it's the same, it sleeps wainting for the file to disappear:
[19513] stat("/tcb/files/auth/j/jnj-t", 0x77ff61d0) ................................................................................................... = 0
[19513] nanosleep(0x77ff6238, NULL) ........................................................................................................................ = 0
[19513] stat("/tcb/files/auth/j/jnj-t", 0x77ff61d0) ................................................................................................... ERR#2 ENOENT
[19513] open("/tcb/files/auth/j/jnj", O_RDONLY, 0666) ................................................................................................. = 6
[19513] fcntl(6, F_SETFD, 1) ............................................................................................................................... = 0
Windows?, no thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 12:26 AM
тАО08-11-2010 12:26 AM
Re: Pam ftpd logon error HP-UX 11.11
ok, it's clear now
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP