LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2010, 09:59 AM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
Trying to create a /home/user for a new user on a remote server


I don't know if this is doable, but I can conceive it.

So, here is what I want to do:

1. Make user on box 1 but have /home/user on server (box 2)
2. Box 1 connects to (box 2) via the Internet
3. Box 1 connects to box 2 via ssh
4. Box 2 is an ssh server

So far, this is what I have done

1. Allow passwordless login between box 1 and box 2
2. create /home/user mock on box 2
3. edit /etc/fstab on box 1 so that it attempts to mount the remote ssh folder (/home/local/BSB/cyberman/homefolderlaptop/cyberman) to /home/cyberman (local directory) on box 1
4. Tried to mount it

Supposedly, I'm getting some junk..

Code:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
Yeah, well, of course it's not empty.
I don't see how I can have the remote folder mounted yet create a user in it?

I've tried removing the /home/cyberman on the local. And then I mounted the remote folder and attempted on the local machine to make the user. The add new user gui feature in Debian will not allow me to make the user this way, as the folder already exists.

Last edited by Cyberman; 03-27-2010 at 10:02 AM.
 
Old 03-27-2010, 05:27 PM   #2
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Can you mount the remote folder in a subdirectory like /home/cyberman/remote
solution
mount a remote home folder create a new user will be created on the remote server and copy required content to the folder. If you want the remote user and the user on the server to have the same folder they must have the same user id.

Last edited by whizje; 03-27-2010 at 05:35 PM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create file in user home in C knobby67 Programming 5 10-16-2009 01:55 AM
create a new user with a different home directory cccc Debian 6 08-06-2008 05:47 AM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM
adding a new user doesn't create a home directory abrakadabra Linux - General 6 08-09-2002 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration