How to get root access for other users with the visudo
2017-10-08 10:14
681 查看
If you are seeing errors of "touch: cannot touch ‘/opt/apache-tomcat-7.0.81/logs/catalina.out’: Permission denied" similarly, that is because your current account has no permission to access the logs directory under the tomcat path.
Here you need to execute the command of
chmod a+rwx -R $CATALINA_HOME/logs
to get the permission to read/write/execute(+rwx)the all directory(-R); but often you cannot execute this command, because this command need the root access.
Here you can log in root or just use the sudo to execute the command with 5 minutes' root access.
You need to use the VIM to edit the sodo configuration with command below:
visudo
locate at the
##Allow root to run any commands anywhere
root ALL=(ALL) ALL
add "username ALL=(ALL) ALL " after it.
Then you can execute the chmod command and get the all read/write/execute permission for the /logs directory.
And of course then you can execute the start command .
Thank you. contact me with email zhangweicalm@qq.com
Here you need to execute the command of
chmod a+rwx -R $CATALINA_HOME/logs
to get the permission to read/write/execute(+rwx)the all directory(-R); but often you cannot execute this command, because this command need the root access.
Here you can log in root or just use the sudo to execute the command with 5 minutes' root access.
You need to use the VIM to edit the sodo configuration with command below:
visudo
locate at the
##Allow root to run any commands anywhere
root ALL=(ALL) ALL
add "username ALL=(ALL) ALL " after it.
Then you can execute the chmod command and get the all read/write/execute permission for the /logs directory.
And of course then you can execute the start command .
Thank you. contact me with email zhangweicalm@qq.com
相关文章推荐
- How to Modify the Password for SYSMAN and other Enterprise Manager Users at the OMS Level and Reposi
- How to get the IIS root path in other application.
- how to enable remote access for root user
- How to get the MD5 checksum for a file: md5sum, digest, csum, fciv
- How to add the selinux policy access for the new created linux file node.
- How to create aligned partitions in Linux for use with NetApp LUNs, VMDKs, VHDs and other virtual di
- Building Applications with Force.com and VisualForce(Dev401)( 八):Designing Applications for Multiple Users: Controling Access to Records.
- How to create fully custom Role, User, Event, Resource classes for use with the Security and Scheduler modules
- How To get the Real length of a string with chinese words
- Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical
- How to get Expression Encoder to work with the latest Apple QuickTime (7.64.17.0 and greater)
- How to Create Mixed Reality Videos for the Vive - with Two Controllers
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- How to Get Help With a Command from the Linux Terminal
- How to get the identity hash codes for files
- APPS:How to view the concurrent request output of other users
- how to get the Authorization of adobe acrobat 8.0 for free
- How to get root access on FireEye OS
- How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server
- Tip/Trick: How to Run a Root “/” Site with the Local Web Server using VS 2005 SP1