开发者

give everyone right to folder using command line

i don't know how to assign the everyone right to folder. my application give me error if folder does not have the everyone right. so can any one give me some example how to assign the everyone right to folder. i want to do this using .bat file.

can anyone give me some 开发者_如何学Cway?


I have found something in the line of the following (I'm using Users since i'm on a machine with XP)

cacls c:\mytestfolder /G Users:F


I think you need.

sudo chmod 777 <Dir Name>

Depending if everyone id allowed to write and execute

but it's not advised

sudo chmod 444 <Dir Name>

For everyone to read

Assuming you are using linux that is, you can put in a shell script to execute multiple commands


It appears that you're using windows since you want a .bat file?

If that's correct, you'll want to use the "cacls" command: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cacls.mspx?mfr=true

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜