We discourage users from using `root` to call ceph-deploy or to call it with `sudo` for this reason. We have a warning in the docs about it if you are getting started in the Ceph Node Setup section: http://ceph.com/docs/v0.80.5/start/quick-start-preflight/#ceph-deploy-setup The reason for this is that if you configure ssh to login to the remote server as a non-root user (say user "ceph") there is no way for ceph-deploy to know that you need to call sudo on the remote server because it detected you were root. ceph-deploy does this detection to prevent calling sudo if you are root on the remote server. So, to fix this situation, where you are executing as root but login into the remote server as a non-root user you can use either of these two options: * don't execute ceph-deploy as root * don't configure ssh to login as a non-root user On Thu, Sep 11, 2014 at 12:16 AM, Subhadip Bagui <i.bagui at gmail.com> wrote: > Hi, > > I'm getting the below error while installing ceph on node using ceph-deploy. > I'm executing the command in admin node as > > [root at ceph-admin ~]$ ceph-deploy install ceph-mds > > [ceph-mds][DEBUG ] Loaded plugins: fastestmirror, security > [ceph-mds][WARNIN] You need to be root to perform this command. > [ceph-mds][ERROR ] RuntimeError: command returned non-zero exit status: 1 > [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y > install wget > > I have changed the Defaults requiretty setting to Defaults:ceph !requiretty > in /etc/sudoers file and also put ceph as sudo user same as root in node > ceph-mds. added root privilege on node ceph-mds using command--- echo "ceph > ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers sudo chmod 0440 > /etc/sudoers as mentioned in the doc > > All servers are on centOS 6.5 > > Please let me know what can be the issue here? > > > Regards, > Subhadip > ------------------------------------------------------------------------------------------------------------------- > > _______________________________________________ > ceph-users mailing list > ceph-users at lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >