Home › Forums › OS X Server and Client Discussion › Open Directory › SSH, Home Directories, and Open Directory
- This topic has 6 replies, 2 voices, and was last updated 20 years, 1 month ago by
afp548contributor.
-
AuthorPosts
-
January 27, 2005 at 4:10 pm #360464
JasonHeiser
ParticipantI have two Panther servers running 10.3.7. One is an Open Directory Master and the other is a Replica. User directories are on the Master and there is a working Network Mount record for them. When I SSH into the Replica, I am successfully CDed to my home directory at /Network/Servers/ODMaster/Users/Jason. This is good. However, all of the permissions are wong. Root owns everything. If I SSH into the Directory Master, all of the files are owned by me, as they should be. Do I need to change something on the Replica’s SSHD?
Jason
January 27, 2005 at 9:24 pm #360474JasonHeiser
ParticipantThey’re being mounted via AFP.
(Marvelous website you have here, by the way, MacTroll. Thanks for taking the time to answer my question)
March 9, 2005 at 7:16 pm #360929JasonHeiser
ParticipantThe solution:
Execute “mnthome” when you SSH into a machine where your home directory is on a network mount. The command is available on Mac OS X Server, but not the client.
“man mnthome” will tell you everything you want to know about this command.
March 17, 2005 at 8:35 pm #361000Anonymous
GuestFirst- a thanks to the OS X Server gurus for tips about the mnthome command.
Unfortunately, I don’t see how this solves the entire problem, at least in this case:after a fresh reboot of a dual-G5 (lets call it mac1), which gets user home directors from a OS X Server via AFP-
Developer 1 (Joe) ssh’s into mac1.company.com.
joe can run the mnthome command, he is functional and works for awhile and then logs off.Developer 2 (Jane) ssh’s into mac1.company.com
and her home dir permissions might look ok, but she can’t create any new directories or files. obviously she needs to run the mnthome command. but she can not, because the AFP mount is still under joe’s ID!
(mnthome complains (1 Operation not permitted))
root/sudo interaction is needed at this point (I believe) to umount the first AFP by joe.obviously the more developers that wish to ssh into the same machine, the more cumbersome the problem becomes, nevermind if two developers want to “ssh mac1” at the same time!
is there a way at least for a the “automount of the afp” to auto-unmount once the user logs off, so at least the machine can afp mount properly for the next person who ssh’s in???
I can’t believe Apple OS X Server has botched this issue so…
[QUOTE BY= JasonHeiser] The solution:
Execute “mnthome” when you SSH into a machine where your home directory is on a network mount. The command is available on Mac OS X Server, but not the client.
[/QUOTE]
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed