[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Persistent sshfs mount from inside a Buster virtual machine?



On Jo, 23 apr 20, 19:56:15, Nate Bargmann wrote:
> 
> So I tried the next set of commands:
> 
> $ sudo systemctl start home-nate-share.mount 
> [sudo] password for nate: 
> Failed to start home-nate-share.mount: Unit home-nate-share.mount not found.

This looks for units in /etc/systemd/system, but yours is a user unit.

> $ sudo systemctl --user start home-nate-share.mount Failed to connect 
> to bus: No such file or directory

Combining 'sudo' with '--user' will look for units in 'root's home 
(because by prepending 'sudo' the calling user is now 'root').
 
You want to run 'systemctl --user' as the user that should run the unit, 
*without* 'sudo'.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature


Reply to: