Start another sshd on a different port with verbose debugging enabled,
and try to send a file. It's got to be a / permissions issue.
/usr/sbin/sshd -D -d -f /etc/ssh/sshd_config -p 2022
Try to sftp on port 2022 and watch the output.
On Wed, Apr 02, 2025 at 01:28:18PM +0000, Dirk Bergl via IBM TechXchange Community wrote:
> Thanks Russell,
>
>
> Did check syslog, but nothing popped up.. Have enabled:
>
>
> *.debug
>
>
> *.warn
>
>
> *.crit
>
>
> *auth.notice
>
>
> Only one we havn'et done is daemon.notice
>
>
>
>
>
> It logs the SFTP user getting authentication, but not much else - no obvious errors.
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------
> Dirk Bergl
> ------------------------------
> -------------------------------------------
> Original Message:
> Sent: Wed April 02, 2025 08:44 AM
> From: Russell Adams
> Subject: SFTP to AIX: AIX Server returns "Permission Denied" for all directories and all users
>
> Enable syslog. It's likely a permissions issue in /.
>
> On Wed, Apr 02, 2025 at 12:37:42PM +0000, Dirk Bergl via IBM TechXchange Community wrote:
> > We are SFTP'ing to an AIX (OS 6.1) server, it was all running fine, now for some reason all users CAN still login, but can't list or change to any directory at all.
> >
> >
> > What is more strange is that users CAN still create and remove directories, just not see them.
> >
> >
> > Eg:
> >
> >
> > Connected to aix001
> > sftp> pwd
> > Remote working directory: /home/fred
> > sftp> ls
> > remote readdir("/home/fred"): Permission denied
> > sftp> cd /tmp
> > stat remote: Permission denied
> > sftp> ls /tmp
> > Can't ls: "/tmp" not found
> > sftp> mkdir NEW_DIR ( It DOES create this directory)
> > sftp> ls NEW_DIR
> > Can't ls: "/home/fred/NEW_DIR" not found
> > sftp> rmdir NEW_DIR # ( It DOES remove this directory)
> > sftp> ls /tmp
> > Can't ls: "/tmp" not found
> > sftp> mkdir /tmp/NEW # ( It DOES create this directory)
> > sftp> ls /tmp/NEW
> > Can't ls: "/tmp/NEW" not found
> > sftp> rmdir /tmp/NEW # (It DOES remove this directory)
> > sftp> pwd
> > Remote working directory: /home/fred
> >
> >
> >
> >
> >
> > Enabled debug, shows no errors. SFTP connections are established without error.
> >
> >
> > sshd_config: Subsystem sftp internal-sftp
> >
> >
> >
> >
> >
> > We're out of ideas, there's no errors being returned at the OS level, just the errors in the FTP client.
> >
> >
> > Have tried multiple SFTP clients, they all get same error.
> >
> >
> >
> >
> >
> > SSH sessions , SCP sessions, still both work fine.
> >
> >
> >
> >
> >
> > Anyone ever seen anything like this !?!??!
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------
> > Dirk Bergl
> > ------------------------------
> >
> >
> > Reply to Sender :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=799031&SenderKey=2ac20846-1a47-4b53-8e13-0195f4815982 <https: community.ibm.com community user egroups postreply?groupid=6049&MID=799031&SenderKey=2ac20846-1a47-4b53-8e13-0195f4815982>
> >
> > Reply to Discussion :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=799031 <https: community.ibm.com community user egroups postreply?groupid=6049&MID=799031>
> >
> >
> >
> > You are subscribed to "AIX" as
Russell.Adams@AdamsSystems.nl <
russell.adams@adamssystems.nl>. To change your subscriptions, go to
http://community.ibm.com/community/user/preferences?section=Subscriptions. <http: community.ibm.com community user preferences?section=Subscriptions.> To unsubscribe from this community discussion, go to
https://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91. <https: community.ibm.com higherlogic egroups unsubscribe.aspx?userkey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91.>
>
>
> ------------------------------------------------------------------
> Russell Adams
Russell.Adams@AdamsSystems.nl <
russell.adams@adamssystems.nl>
> Principal Consultant Adams Systems Consultancy
>
https://adamssystems.nl/ <https: adamssystems.nl>
>
>
> Original Message:
> Sent: 4/2/2025 12:21:00 AM
> From: Dirk Bergl
> Subject: SFTP to AIX: AIX Server returns "Permission Denied" for all directories and all users
>
>
> We are SFTP'ing to an AIX (OS 6.1) server, it was all running fine, now for some reason all users CAN still login, but can't list or change to any directory at all.
>
> What is more strange is that users CAN still create and remove directories, just not see them.
>
> Eg:
>
> Connected to aix001
> sftp> pwd
> Remote working directory: /home/fred
> sftp> ls
> remote readdir("/home/fred"): Permission denied
> sftp> cd /tmp
> stat remote: Permission denied
> sftp> ls /tmp
> Can't ls: "/tmp" not found
> sftp> mkdir NEW_DIR ( It DOES create this directory)
> sftp> ls NEW_DIR
> Can't ls: "/home/fred/NEW_DIR" not found
> sftp> rmdir NEW_DIR # ( It DOES remove this directory)
> sftp> ls /tmp
> Can't ls: "/tmp" not found
> sftp> mkdir /tmp/NEW # ( It DOES create this directory)
> sftp> ls /tmp/NEW
> Can't ls: "/tmp/NEW" not found
> sftp> rmdir /tmp/NEW # (It DOES remove this directory)
> sftp> pwd
> Remote working directory: /home/fred
>
>
>
> Enabled debug, shows no errors. SFTP connections are established without error.
>
> sshd_config: Subsystem sftp internal-sftp
>
>
>
> We're out of ideas, there's no errors being returned at the OS level, just the errors in the FTP client.
>
> Have tried multiple SFTP clients, they all get same error.
>
>
>
> SSH sessions , SCP sessions, still both work fine.
>
>
>
> Anyone ever seen anything like this !?!??!
>
>
>
>
>
>
>
>
> ------------------------------
> Dirk Bergl
> ------------------------------
>
>
> Reply to Sender :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=799066&SenderKey=2ac20846-1a47-4b53-8e13-0195f4815982>
> Reply to Discussion :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=799066>
>
>
> You are subscribed to "AIX" as
Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to
http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to
https://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91.------------------------------------------------------------------
Russell Adams
Russell.Adams@AdamsSystems.nlPrincipal Consultant Adams Systems Consultancy
https://adamssystems.nl/
Original Message:
Sent: 4/2/2025 9:28:00 AM
From: Dirk Bergl
Subject: RE: SFTP to AIX: AIX Server returns "Permission Denied" for all directories and all users
Thanks Russell,
Did check syslog, but nothing popped up.. Have enabled:
*.debug
*.warn
*.crit
*auth.notice
Only one we havn'et done is daemon.notice
It logs the SFTP user getting authentication, but not much else - no obvious errors.
------------------------------
Dirk Bergl
------------------------------
Original Message:
Sent: Wed April 02, 2025 08:44 AM
From: Russell Adams
Subject: SFTP to AIX: AIX Server returns "Permission Denied" for all directories and all users
Enable syslog. It's likely a permissions issue in /.
On Wed, Apr 02, 2025 at 12:37:42PM +0000, Dirk Bergl via IBM TechXchange Community wrote:
> We are SFTP'ing to an AIX (OS 6.1) server, it was all running fine, now for some reason all users CAN still login, but can't list or change to any directory at all.
>
>
> What is more strange is that users CAN still create and remove directories, just not see them.
>
>
> Eg:
>
>
> Connected to aix001
> sftp> pwd
> Remote working directory: /home/fred
> sftp> ls
> remote readdir("/home/fred"): Permission denied
> sftp> cd /tmp
> stat remote: Permission denied
> sftp> ls /tmp
> Can't ls: "/tmp" not found
> sftp> mkdir NEW_DIR ( It DOES create this directory)
> sftp> ls NEW_DIR
> Can't ls: "/home/fred/NEW_DIR" not found
> sftp> rmdir NEW_DIR # ( It DOES remove this directory)
> sftp> ls /tmp
> Can't ls: "/tmp" not found
> sftp> mkdir /tmp/NEW # ( It DOES create this directory)
> sftp> ls /tmp/NEW
> Can't ls: "/tmp/NEW" not found
> sftp> rmdir /tmp/NEW # (It DOES remove this directory)
> sftp> pwd
> Remote working directory: /home/fred
>
>
>
>
>
> Enabled debug, shows no errors. SFTP connections are established without error.
>
>
> sshd_config: Subsystem sftp internal-sftp
>
>
>
>
>
> We're out of ideas, there's no errors being returned at the OS level, just the errors in the FTP client.
>
>
> Have tried multiple SFTP clients, they all get same error.
>
>
>
>
>
> SSH sessions , SCP sessions, still both work fine.
>
>
>
>
>
> Anyone ever seen anything like this !?!??!
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------
> Dirk Bergl
> ------------------------------
>
>
> Reply to Sender : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=799031&SenderKey=2ac20846-1a47-4b53-8e13-0195f4815982
>
> Reply to Discussion : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=799031
>
>
>
> You are subscribed to "AIX" as Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to https://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91.
------------------------------------------------------------------
Russell Adams Russell.Adams@AdamsSystems.nl
Principal Consultant Adams Systems Consultancy
https://adamssystems.nl/
Original Message:
Sent: 4/2/2025 12:21:00 AM
From: Dirk Bergl
Subject: SFTP to AIX: AIX Server returns "Permission Denied" for all directories and all users
We are SFTP'ing to an AIX (OS 6.1) server, it was all running fine, now for some reason all users CAN still login, but can't list or change to any directory at all.
What is more strange is that users CAN still create and remove directories, just not see them.
Eg:
Connected to aix001
sftp> pwd
Remote working directory: /home/fred
sftp> ls
remote readdir("/home/fred"): Permission denied
sftp> cd /tmp
stat remote: Permission denied
sftp> ls /tmp
Can't ls: "/tmp" not found
sftp> mkdir NEW_DIR ( It DOES create this directory)
sftp> ls NEW_DIR
Can't ls: "/home/fred/NEW_DIR" not found
sftp> rmdir NEW_DIR # ( It DOES remove this directory)
sftp> ls /tmp
Can't ls: "/tmp" not found
sftp> mkdir /tmp/NEW # ( It DOES create this directory)
sftp> ls /tmp/NEW
Can't ls: "/tmp/NEW" not found
sftp> rmdir /tmp/NEW # (It DOES remove this directory)
sftp> pwd
Remote working directory: /home/fred
Enabled debug, shows no errors. SFTP connections are established without error.
sshd_config: Subsystem sftp internal-sftp
We're out of ideas, there's no errors being returned at the OS level, just the errors in the FTP client.
Have tried multiple SFTP clients, they all get same error.
SSH sessions , SCP sessions, still both work fine.
Anyone ever seen anything like this !?!??!
------------------------------
Dirk Bergl
------------------------------
</https:></russell.adams@adamssystems.nl></https:></http:></russell.adams@adamssystems.nl></https:></https:>