开发者

xampp htdocs permission problem OSX

I just installed XAMPP on OSX. I can't add folder on the htdocs via Finder. I can add a folder via the terminal using sudo mkdir foldername. However I want to add folder by not using the sudo command.

I execute ls -ld htdocs and got this output:

drw开发者_如何学Pythonxr-xr-x@ 7 root  admin  238 Sep 13 14:11 .htdocs

How do I add myaccount so that I can create folder without having to use sudo? I'm really confused on the use of chown or chmod.

Thanks.


The .htdocs directory belongs to root, which means, as a simple user, you can't modify anything in without using sudo.
Try changing the ownership of that folder, or change permissions on it : chmod 757 .htdocs.( rwx r-x rwx ).

After that you might be able to create a directory in it, either from the command line, or via the Finder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜