I have a user account rootftp which two people use every once in awhile to ftp into a machine, I believe it is using Solaris and running as a Xerox freeflow print server. The physical machine is a Xerox N-Series, Reg Model D01D, Reg Type D01D001. The two users are running windows 10 if that affects anything. Say we have the two following paths:

Path 1 = /var/somewhere/somewheredeeper
Path 2 = /var/somewhere

When either of the two users use ftp to get to this machine, they start out in the location of path 1. Where/How can I make a change so they start out in Path 2 when they connect through ftp? They need access to Path 2 but if they start out in Path 1 they cannot go up a level higher into Path 1.

I know next to nothing about linux, but I am very slightly familiar with bash and using a terminal. I wasn't able to find this particular information from searching. Thanks for any assistance!

  • From your description, it seems possible that it is the server enforcing the path restriction. I would suggest communicating with the server's admin to find out if this is the case. (It's possible that it's the clients, too, but then it would be strange if they don't allow going one level up after connecting.) – dhag Feb 12 '18 at 21:58
  • @dhag, That was my thought (server is restricting acccess). There is no real administrator/manager for this machine, although I have full access to it. It is a Xerox print server that we sometimes have to move files to or from and use FTP to complete that task. – cet51 Feb 12 '18 at 22:06
  • Ah, that's very useful information; if you edited your question to mention the exact model of Xerox machine that you are using, there is a chance that someone could find out more about how can be configured. – dhag Feb 12 '18 at 22:09
  • the output of getent passwd rootftp | cut -d: -f6 may also reveal /var/somewhere/somewheredeeper, can you verify that please? – WEBjuju Feb 13 '18 at 1:41

Very likely you just need to

  1. update the user's home directory, you could vi /etc/passwd and change /var/somewhere/somewheredeeper to /var/somewhere but you'll then need to
  2. update the permissions on /var/somewhere to have ownership and permissions that allow the rootftp user to ftp to that dir
  • 1
    Thank you very much @WEBjuju ! I was able to do that grep rootftp /etc/passwd and then I did gedit /etc/passwd and was able to edit that file and set the directory to what I want it to be for the rootftp user. Upon testing the ftp now functions perfectly – cet51 Feb 13 '18 at 22:28
  • @cet51 best news of the day, sir. congratulations - don't stop *nixing! – WEBjuju Feb 13 '18 at 22:31
  • I'm assuming vi is just a different file editor? I have no clue what you mean by *nixing unfortunately – cet51 Feb 13 '18 at 22:36
  • 1
    vi is a file editor as is VIM which is "Vi IMproved". i'm probably imagining that *nixing is a thing by playing off the gerund form of the noun *nix which seems to frequently stand for both Linux/Unix. probably... i am typically off at least an inch on my knowledge and usage of things like that. anyway, i just said it because you had mentioned that you were new to linux, so i though i would encourage you to continue your foray into *nix in the wake of your success with editing the users' home directories. best of luck with the solaris box. – WEBjuju Feb 13 '18 at 23:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.