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.
我正在尝试使用NetBeans 6.9。应用程序无法访问位于apache根文件夹中的文件;我的项目位于同一台机器上 - 一个测试LAMP服务器。 apache root拥有所有者root和group apache。但NetBeans具有当前用户的用户权限。
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.
该应用程序不会自动提供任何解决方案。我已经浏览了常见问题解答并搜索了维基,我找不到帮助文档或帖子来解释如何在Linux的权限系统中使用NetBeans。
My framework projects require directory 744 and file 644 permissions, so I can't solve NetBeans RW requirement with groups.
我的框架项目需要目录744和文件644权限,因此我无法使用组解决NetBeans RW要求。
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 added the project.
我使用NetBeans --userdir / root选项解决了这个问题。它允许我以root用户身份启动应用程序,因此具有超级用户访问权限。但是,它不能保持NetBeans首选项。我必须重新加载项目,并且可能会在我上次添加项目时覆盖NetBeans元文件。
What am I missing? How do I set user permissions using NetBeans?
我错过了什么?如何使用NetBeans设置用户权限?
2 个解决方案
#1
0
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.
我很惊讶没有使用netbeans通过网络(位于其他地方)管理项目的窥视回复......我最终得到了一个非netbeans解决方案,其中包含服务器上的权限。
#2
0
You can add your current user (the one who starts Netbeans) to the group that own the project files.
您可以将当前用户(启动Netbeans的用户)添加到拥有项目文件的组中。
For instance: (in super user)
例如:(在超级用户中)
usermod -G -a apache <myuser>
Note: Don't forget to login/logout to apply group changes
注意:不要忘记登录/注销以应用组更改
#1
0
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.
我很惊讶没有使用netbeans通过网络(位于其他地方)管理项目的窥视回复......我最终得到了一个非netbeans解决方案,其中包含服务器上的权限。
#2
0
You can add your current user (the one who starts Netbeans) to the group that own the project files.
您可以将当前用户(启动Netbeans的用户)添加到拥有项目文件的组中。
For instance: (in super user)
例如:(在超级用户中)
usermod -G -a apache <myuser>
Note: Don't forget to login/logout to apply group changes
注意:不要忘记登录/注销以应用组更改