当前位置: 技术问答>linux和unix
在运行程序时报命令不支持,请求高手帮助(MAC)
来源: 互联网 发布时间:2016-02-20
本文导语: #!/bin/sh # A script to fix permissions for lock files on Mac OS X # Contributed by Dmitry Markman # Fri Aug 23 15:46:46 MDT 2002 curruser=`sudo id -p | grep 'login' | sed 's/login.//'` if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uu...
#!/bin/sh
# A script to fix permissions for lock files on Mac OS X
# Contributed by Dmitry Markman
# Fri Aug 23 15:46:46 MDT 2002
curruser=`sudo id -p | grep 'login' | sed 's/login.//'`
if [ ! -d /var/spool/uucp ]
then
sudo mkdir /var/spool/uucp
fi
sudo chgrp uucp /var/spool/uucp
sudo chmod 775 /var/spool/uucp
if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser >
/dev/null` ]
then
sudo niutil -mergeprop / /groups/uucp users $curruser
fi
运行后报:
sudo : niutil : command not found
难道niutil这个命令吗
# A script to fix permissions for lock files on Mac OS X
# Contributed by Dmitry Markman
# Fri Aug 23 15:46:46 MDT 2002
curruser=`sudo id -p | grep 'login' | sed 's/login.//'`
if [ ! -d /var/spool/uucp ]
then
sudo mkdir /var/spool/uucp
fi
sudo chgrp uucp /var/spool/uucp
sudo chmod 775 /var/spool/uucp
if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser >
/dev/null` ]
then
sudo niutil -mergeprop / /groups/uucp users $curruser
fi
运行后报:
sudo : niutil : command not found
难道niutil这个命令吗
|
首先用whereis,find / -name "*niutil*"等等的命令确定你系统上确实装了这个程序,如果不是请安装该程序,如果是
echo $PATH,查看niutil的路径在搜索路径上,不在请使用该命令时用绝对路径
echo $PATH,查看niutil的路径在搜索路径上,不在请使用该命令时用绝对路径