I'm using the  Vagrant box.  When I vagrant up with the default Vagrantfile I'm able to log in and get to work without needing to input a password via vagrant ssh.  I land in the home directory by default:  ubuntu@ubuntu-xenial:~$ pwd /home/ubuntu   I'd like to be able to have my /home/ubuntu directory synced with the project root on my host machine (like the /vagrant directory is).  I read up in the  and added the following to my Vagrantfile:  config.vm.synced_folder ".", "/home/ubuntu"   Now I'm being asked for a password which I don't want. Also I tried "vagrant" and "ubuntu" for the password and wasn't able to log in anyways.   How do I sync my /home/ubuntu directory in my Vagrant box with my host project root while still not being required to input a password?   Note: My current workaround is to continue working from /vagrant in my Vagrant box.
124201
I would like to run vagrant without being prompted for a password. As this post suggests, I used visudo to add the following line to my sudoers file.  john-moz ALL=(ALL) NOPASSWD: /usr/bin/vagrant   This does not seem to work. I am still prompted for a password when using vagrant. Am I doing something wrong?
98013
I have a private key set up for my github account, the passphrase to which is, I believe, stored in OS X's keychain. I certainly don't have to type it in when I open a terminal window and enter ssh git@github.com.  However, when I'm running bash over an ssh session, or locally inside a tmux session, I have to type in the passphrase every single time I attempt to ssh to github.   suggests that a similar problem exists with screen, but I don't really understand the issue well enough to fix it in tmux. There's also  which includes a fairly complicated solution, but for zsh.  EDIT:  In response to , from a local terminal I get the following output:  [~] $ echo $SSH_AUTH_SOCK /tmp/launch-S4HBD6/Listeners [~]  $ ssh-add -l 2048 [my key fingerprint] /Users/richie/.ssh/id_rsa (RSA) [~] $ typeset -p SSH_AUTH_SOCK declare -x SSH_AUTH_SOCK="/tmp/launch-S4HBD6/Listeners"   Whereas over ssh or in tmux I get:  [~] $ echo $SSH_AUTH_SOCK  [~] $ ssh-add -l Could not open a connection to your authentication agent. [~] $ typeset -p SSH_AUTH_SOCK bash: typeset: SSH_AUTH_SOCK: not found   echo $SSH_AGENT_PID returns nothing whatever shell I run it from.
14095
My initial installation for the MySQL had no password for root. I assigned a password for root and everything worked fine. Due to some reason (don't ask why) I had to revert back to the original settings where root didn't have any password.  I changed the root password to '' (empty string). The problem now is that MySQL doesn't run with 'mysql -uroot', it expects a password. On running 'mysql -uroot -p' and hitting enter on the password prompt gets me into the db, but is not same as the default setting.  Is there any other flag/setting that I am missing to set/unset which tells mysql to not expect a password?  Thanks
119486
I have a virtual machine running ubuntu and I am trying to host some files on ubuntu and map the drive in windows PC.  Following the steps , I am able to see (from windows) the "work" folder after typing in \ubuntu_ip. But when trying to access or map it with "svc_acct" from windows, I get "0x80070043 error the network name cannot be found". I guess I am not accessing correctly from windows.   SAMBA config below (svc_acct is an account set up under linux). When accessing the folder from windows, I get prompted for username/password. Not sure what credential to type in exactly.  samba config: [work] path = /home/svc_acct/work valid users = svc_acct available = yes read only = no browsable = yes public = yes writable = yes force user = svc_acct create mask = 0777 directory mask = 0777   UPDATE:  All I did to resolve this is by changing samba config's path from path = /home/svc_acct/work to path = /home/svc_acct following  post  (last sentence). Then no more prompt for password in windows when I try to click into the folder. Thanks to @sancho.s for suggesting the link.
88684
I can't do ssh public key login to my server and I think this issue is related to the fact my home is encrypted. I chose the option "encrypt my home folder" under the Ubuntu install setup. The permissions on /home/MY-USER are 700.  I've tried another workstation and everything works fine. I would be glad if someone help me to get out this without removing the encryption.
49219
Possible Duplicate:          Can I confine my users to their /home/%u directory using simply open-ssh configuration? I did the following from what I found on the Internet Stopped the server To the sshd_config file appended the following  Match group sftpusers     ChrootDirectory /home/%u     X11Forwarding no     AllowTcpForwarding no   started the server  FYI I have the users added to sftpusers group  My users can still access entire file structure on my system  Ubuntu Server 12.04 LTS with open-ssh installed
11122
I'm trying to recursively chown a VirtualBox shared folder, but I can't get it to work:  $ ls -lah total 16K drwxr-xr-x  4 root root   4.0K Aug  1  2012 . drwxr-xr-x 23 root root   4.0K Jul 21  2012 .. drwxrwx---  1 root vboxsf 4.0K May  4 17:02 sf_dev drwxrwx---  1 root vboxsf 4.0K Sep  2 10:21 sf_dropbox $ sudo chown -R pknight:pknight sf_dropbox &amp;&amp; ls -lah total 16K drwxr-xr-x  4 root root   4.0K Aug  1  2012 . drwxr-xr-x 23 root root   4.0K Jul 21  2012 .. drwxrwx---  1 root vboxsf 4.0K May  4 17:02 sf_dev drwxrwx---  1 root vboxsf 4.0K Sep  2 10:21 sf_dropbox   I'm aware that I could just add a user to the vboxsf group (as it has full permissions), but I don't want to give every user/daemon full permissions to all of my shared folders.  I'm running VirtualBox 4.2.x, with Windows 7 as the host and both Xubuntu and Debian as guests.  Is there any way for me to change the owner/group of my VirtualBox shared directory?
13155
I want to create a new user to run a service on the system but don't want to have /home and other configuration files for it. Like there is a user for postgres but it doesn't have any /home directory.
89001
It's known that when you're connecting to a wrong server via ssh and send your password  to it, your password comes in a plain text and a server saves it by default. Probably. I wonder, where I can retrieve it? I don't see it in /var/log/auth.log, although I do see all the attempts to authenticate.
68200
For security purposes my company wants me to not allow anyone to be able to log into our Ubuntu server as root remotely over SSH. We still want the root account to exist, we just do not want it to be able to be logged into remotely. How would I accomplish this?  Thank you very much in advance for your time.
31871
How do I add "-X" into my ssh default option? i.e., when I type ssh A.B.C.D, it should really do ssh -X A.B.C.D  I can alias it, but is there a more "elegant" solution to do that in .ssh/config file?
120822
I would like to tell Ubuntu One to sync with '~/Public/Ubuntu One' rather than '~/Ubuntu One'. Since I'm using it on Arch Linux, I don't have any right-click option for that.  I tried to edit ~/.config/ubuntuone/syncdaemon.conf and add the line root_dir = ~/new/folder (as suggested ), but the file is automatically reverted to its previous state. Also, the command u1sdtool hangs and does apparently nothing - I have to use Ctrl + C to close it. Is there another way to setup the default Ubuntu One default local folder?
67742
I am writing a script to add a large amount of users to a system. Part of this involves setting default passwords for each user. How can I set users' passwords without it prompting me for the password up front?  Unfortunately passwd doesn't seem to take an argument stating the new password to set. I'm using Ubuntu 11.10.
84001
I'd like Software Center, Update Manager and some other system management applications to work without asking for password (like sudo does if configured with NOPASSWD) but only asking for a confirmation instead, or even without any confirmation. At the same time I wouldn't like to use no user password at all. Is this reachable?
38466
I need to configure a machine so software installation can be automated remotely via SSH. Following , I was able to setup SSH keys so my user can access the machine without a password, but I still need to manually enter my password when I use sudo, which obviously an automated process shouldn't have to do.  Although my /etc/ssh/sshd_config has PermitRootLogin yes, I can't seem to be able to log in as root, presumably because it's not a "real" account with a separate password.  How do I configure SSH keys, so a process can remotely log in as root on Ubuntu?
89358
What am I missing?  I change the root password on a unix machine, then try to log in with that password.  PasswordAuthentication is set to yes in sshd_config and the sshd daemon has been restarted.  This behavior happens whether I log in remotely or locally:  root@ip-10-0-0-155:~# passwd Enter new UNIX password:  Retype new UNIX password:  passwd: password updated successfully root@ip-10-0-0-155:~# ssh root@127.0.0.1 root@127.0.0.1's password:  Permission denied, please try again. root@127.0.0.1's password:
69227
How do I set up SSH so I don't have to type my password when connecting to a host?