Safely change home directory

前端 未结 12 2348
南旧
南旧 2020-12-12 10:22

I\'m trying to safely update the home directory as specified in /etc/passwd, but the standard Linux utils - usermod and vipw - for doing so aren\'t provided by

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 11:11

    I ended up exiting all my cygwin shells and editing it by hand in a text editor. So far, so good.

    Note: don't escape the spaces in the "Documents and Settings" directory. The entry will look like

    user:...:/cygdrive/c/Documents and Settings/user:/bin/bash
    

    The line is tokenized on the : character.

提交回复
热议问题