开发者

How do I set up NetBeans to access projects where permissions do not match my current user?

开发者 https://www.devze.com 2023-03-29 07:35 出处:网络
I\'m trying to use NetBeans 6.9. The application can\'t access file located in the apache root folder; My project is located on the same machine--a test LAMP server. The apache root has owner root and

I'm trying to use NetBeans 6.9. The application can't access file located in the apache root folder; My project is located on the same machine--a test LAMP server. The apache root has owner root and group apache. But NetBeans has the user privileges of the current user.

The application does not present any solution automatically. I've gone through the FAQ and searched the wiki and I can't find a help doc or post to explain how to use NetBeans with Linux's permissions system.

My framework projects require directory 744 and file 644 permissions, so I can't solve NetBeans RW requirement with groups.

I've worked around this using the NetBeans --userdir /root option. It allows me to start the application as root user and therefore have superuser access. However, it's not working to keep NetBeans preferences. I have to reload the project and presumably overwrite the NetBeans meta files from the last time I a开发者_如何学编程dded the project.

What am I missing? How do I set user permissions using NetBeans?


I'm surprised there are no replies from peeps using netbeans to manage projects over a network (located somewhere else)...I ended up with a non-netbeans solution with permissions on the server.


You can add your current user (the one who starts Netbeans) to the group that own the project files.

For instance: (in super user)

usermod -G -a apache <myuser>

Note: Don't forget to login/logout to apply group changes

0

精彩评论

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

关注公众号