- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp user getting permission denied to change direc...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО06-11-2008 12:23 PM
тАО06-11-2008 12:23 PM
I can ftp the server successfully, but when I try to cd to an oracle directory I am getting permission denied on most of the directories.
For example:
Using binary mode to transfer files.
ftp> cd /home
250 CWD command successful.
ftp> cd /u06prd
550 /u06prd: Permission denied.
ftp> cd /u01prd
250 CWD command successful.
ftp> cd /u02prd
550 /u02prd: Permission denied.
ftp> cd ..
250 CWD command successful.
ftp> cd /u02prd
550 /u02prd: Permission denied.
ftp> pwd
257 "/" is current directory.
ftp> cd /u03prd
550 /u03prd: Permission denied.
ftp> cd /u04prd
550 /u04prd: Permission denied.
ftp> cd /u05prd
250 CWD command successful.
ftp> cd /u07prd
550 /u07prd: Permission denied.
Here are the permissions on the directories.
root@nholaw1:/etc>ll /u01prd
total 0
drwxr-xr-x 4 root sys 96 May 15 2006 app
drwxr-xr-x 2 root root 96 Feb 9 19:39 lost+found
root@nholaw1:/etc>ll /u02prd
total 0
drwxr-xr-x 2 root root 96 Nov 7 2005 lost+found
drwxr-xr-x 4 oracle users 96 Nov 23 2005 oradata
root@nholaw1:/etc>ll /u06prd
total 0
drwxr-xr-x 2 root root 96 Nov 7 2005 lost+found
drwxr-xr-x 4 oracle dba 96 Feb 10 02:42 oracle
root@nholaw1:/etc>ll /u03prd
total 0
drwxr-xr-x 2 root root 96 Nov 7 2005 lost+found
drwxr-xr-x 4 oracle users 96 Nov 23 2005 oradata
root@nholaw1:/etc>ll /u05prd
total 0
drwxr-xr-x 2 root root 96 Nov 7 2005 lost+found
drwxr-xr-x 4 oracle dba 96 Apr 5 2006 oradata
root@nholaw1:/etc>ll /u07prd
total 0
drwxr-xr-x 2 root root 96 Nov 7 2005 lost+found
drwxr-xr-x 4 oracle users 96 Nov 23 2005 oradata
As you can see some of the directories have the same permissions, but one I can cd to, and the other I can't.
Here is the ftp line in /etc/inetd.conf
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l -u 002
Any ideas would be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 12:36 PM
тАО06-11-2008 12:36 PM
Re: ftp user getting permission denied to change directory
how about the same ll commands' output but with the -d switch this time, like
ll -d /u05prd
and so on ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 01:13 PM
тАО06-11-2008 01:13 PM
Re: ftp user getting permission denied to change directory
drwxrwxrwx 4 oracle dba 96 Nov 7 2005 /u01prd
root@nholaw1:/etc>ll -d /u02prd
drwxrw-rw- 4 oracle dba 96 Nov 23 2005 /u02prd
root@nholaw1:/etc>ll -d /u03prd
drwxrw-rw- 4 oracle dba 96 Nov 23 2005 /u03prd
root@nholaw1:/etc>ll -d /u04prd
drwxrw-rw- 4 oracle dba 96 Nov 23 2005 /u04prd
root@nholaw1:/etc>ll -d /u05prd
drwxrwxrwx 4 oracle dba 1024 Aug 17 2006 /u05prd
root@nholaw1:/etc>ll -d /u06prd
drwxrw-rw- 4 oracle dba 96 Sep 17 2007 /u06prd
root@nholaw1:/etc>ll -d /u07prd
drwxrw-rw- 4 oracle dba 96 Nov 23 2005 /u07prd
root@nholaw1:/etc>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 07:09 PM
тАО06-11-2008 07:09 PM
Solution> drwxrwxrwx 4 oracle dba /u01prd
Yikes! 777 means every file in the directory can be removed by anyone -- not a good setting at all
> drwxrw-rw- 4 oracle dba /u02prd
Bad permissions. You must have execute to look inside a directory.
Thde rest are the same, either 777 (poor security) or 766 (no directory search capability). Set to all to 755 or 775.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 08:02 AM
тАО06-12-2008 08:02 AM
Re: ftp user getting permission denied to change directory
Thanks. When I change the permissions to 775 or 755 as you recommended, should I use the -R option with it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 08:26 AM
тАО06-12-2008 08:26 AM
Re: ftp user getting permission denied to change directory
hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 09:34 AM
тАО06-12-2008 09:34 AM
Re: ftp user getting permission denied to change directory
NEVER use -R with chmod or chown!!!
You will screw things up. The chown/chmod -R commands are not selective. They will hit files as well as directories and that's bad. The 7 digit will add execution to every file even though the files are never to be executed (ie, data files). And the hardcoded 775 or 755 will remove setuid/setgid/sticky bits which will break programs that used to work OK.
To fix this problem, you must first examine the entire directory tree, then see what must be fixed and what must be excluded:
find /u01prd -type d -exec ll {} -d \;
If a previous sysadmin used -R on the directories, you have two choices: find out from Oracle what each directory permission should be and set each one correctly, or set the directories to the same value. This command will set only directories:
find /u01prd -type d -exec chmod 775 {} \;
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 10:07 AM
тАО06-12-2008 10:07 AM
Re: ftp user getting permission denied to change directory
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 10:08 AM
тАО06-12-2008 10:08 AM