UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 19th, 2004, 10:48 PM
wthom wthom is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 3 wthom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
pwd in ftp gives 550

A new disk is just installed in my solaris 8 box. It works fine.

However, if I tried to ftp (in.ftpd) and then cd to all directories hosted in this new disk, it gives me 550 error msg. There is no problem for those in
my old disk at all.

ftp> pwd
550 .


I am sure I've granted enough permissions on file level, since I can do an ls, drop file in, and traverse down all the sub-directories.
And if i use telnet, there is no such problem.

I really have no idea what's going wrong, and my manger is grabbing my neck.

Would appreciate if any one can inspire me with any idea. Many Thanks!!

Reply With Quote
  #2  
Old September 20th, 2004, 06:10 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 33 m 4 sec
Reputation Power: 9
550: registered action not taken, file unavailable (not found, no access)
ftp needs a correct installed user.

Reply With Quote
  #3  
Old September 20th, 2004, 10:29 AM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
For a true pwd to work, the user running the pwd must have read and execute permission in every subdirectory all the way to root. I'll bet that you don't.

When you telnet in, are you using the same uid as when you ftp in? In so, you probably using a shell with a built-in pwd that simply remembers where it thinks it is. Try running /usr/bin/pwd.

Solaris has a nasty bug here. The permissions on the mount point count. You can't see these permission once mount something on top of the mount point. You can unmount the filesystem, change the permissions on the mount point, and remount the filesystem.

As an alternative to unmounting, you can mount the filesystem containing the mountpoint as an NFS loopback. Recall that exporting and mounting a filesystem via NFS does not export other filesystems mounted on top on it. This will expose the mountpoint and let you change the permissions. I think it's roughly something like:
share -F nfs -o rw,root=localhost /
mkdir /realroot
mount -F nfs localhost:/ /realroot
chmod 755 /realroot/export2
But it's been a while since I've done that... If you go this route, please post the real procedure if I fumbled it. It always takes me a couple of tries to get this right.

Reply With Quote
  #4  
Old September 20th, 2004, 10:04 PM
wthom wthom is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 3 wthom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Perderabo,
I have a new finding: pwd works only if I ftp login as root, but failed for normal users (ie. not belongs to group "other")

So it make me start thinking of the permission of mount point as you have mentioned.

However this is actually a disk partition instead of a nfs filesystem, is there also similar kind of permission control?

[/etc/vfstab]
/dev/dsk/c0t9d0s0 /dev/rdsk/c0t9d0s0 /export1 ufs 2 yes -

And, my /usr/bin/pwd can give correct result for all users in telnet. Permission of my /export1 is 775.


Reply With Quote
  #5  
Old September 21st, 2004, 03:42 AM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
Reread my post. I know it's a local disk. Unmount /export1. There will still be a directory in / called /export1. That directory is called a mountpoint. You must change the permissions of that directory. You cannot see the permissions on that directory while /export1 is mounted.

The nfs trick is an exception to that. If you temporarily mount / as an nfs loopback, you can expose the mountpoint. This gives you a way to fix the mountpoint without unmounting /export1. If this is too hard to understand, forget about nfs. Then your only option is to unmount /export1, fix the permissions of /export1, and remount /export1.

And again, the need to do any of this is a SunOS bug.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > pwd in ftp gives 550


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway