开发者

Accessing Machine level configuration with Mono on Linux

I am new to Linux and working with Mono.

As i migrate from windows so first search is for something like the Windows registry in Linux. I come to know here is no registry available, instead there is a configuration file for each program.

I have some more questions...

  1. I want to read some Machine Level information, how this is possible...?
  2. I wa开发者_运维技巧nt to change a permission of a file with mono program written in c# using syscall.chmod. Is this possible, can change the permission of machine level configuration files..?

Waiting for your prompt reply, if something is not clear please ask.


  1. You mostly need to look in the /etc folder for configuration of just about every system service. Though depending on your linux distribution, there will be some quite major differences.

  2. So long as your program is running with root privs, you should be able to chmod any file. I'm not familiar with syscall.chmod, but it should work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜