Permission settings for non-root users and oracle users

Source: Internet
Author: User
Permission settings for non-root users and oracle users-Linux Enterprise Application-Linux server application information. For details, refer to the following section. (6) m: B's crazy problem
Requirements:
1. disable root and oracle logon ~
2. Create a user admin (used by the customer and colleagues) by yourself so that the admin has permissions on a directory and can log on to the system.
3. The customer can only use admin and oracle Permissions
Method:
# Usradd admin Add User Name
# Passwd admin Add a password to the admin
Set ssh Permissions
# Vi/etc/ssh/sshd. config
Join
DenyUsers oracle
PermitRootLogin no
Oracle and root users are not allowed to log on to the system using ssh.
Q: After logging on to the system using admin, you can use su-oracle to enter oracle for database backup.
The backup path is/home/oracle.
I need to use admin to perform operations on my own directory while operating on the backup data files in/home/oracle.
However, the directory permission in linux is either oracle or admin. Users between the two cannot access the directories of the other party, but can copy the directories under the root account.
The final result shows how admin can perform data backup (copy) on/home/oracle without root permission)

Or is there any better way to make the linux server more secure and reliable ......

[ This post was last edited by shen1__sjp]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.