CentOS grants sudo permissions to common users
System Environment: centos 7.0
Citation: an account is assigned to everyone on the lab server, but sometimes common users need to use root permissions, such as installing some software. The following describes how to grant sudo Command Permissions to common users.
Prerequisites: sudo installation is complete.
Before configuration, you want to use the sudo command for normal users to temporarily grant root
Label:Without SSH channel, MySQL grants remote connection direct access Statement GRANT all privileges on * * to [email protected]'%'!dsjdg! ' Later revoke, wrong. There was an error in re-grant. Mysql> Grant all privileges on * * to [E- Mail protected]'% ' identified by '!dsjdg! ' with GRANT OPTION;ERROR 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:yes) ---------------------- Solution: Remove some Delete from user whe
session Alter system set Resource_limit=true scope=both sid= ' * '; //Use Resource_limit and profile to restrict user connectionsCreate profile User01_profile limit Sessions_per_user 1 failed_login_attempts unlimited; //Create a new user Profile:user01_profileAlter user User01 profile User01_profile; //change user User01 profile to User01_profileAlter profile user01_profile limit Sessions_per_user 2; //Limit user User01 number of connections to 2 When User01 has more than three access connectio
After installing Oracle software, you can useUser name SysPassword: password when creating an Oracle instanceServer type: DBAORCL the default naming when installing softwareYou can go to the server
Create a new user name by using the following
Log on to Oracle as a sys user,
SQL> grant sysdba to username;
Grant sysdba to username
*ERROR at line 1:ORA-01994: GRANT failed: password file missing or disabled
First, change the value of the initialization parameter REMOTE_LOGIN_PASSWORDFILE to
Task: grant the select permission (or insert permission) of all userA tables (or views) to userB.
Basic Idea: Log on With usera. select 'Grant insert on' | table_name | 'to userb;' from user_objects; to execute all generated SQL statements.
Of
System environment: centos7.0 citation: an account is assigned to everyone on the lab server, but sometimes common users need to use root permissions, such as installing some software. The following describes how to grant sudo command permissions to
Create a data table space:
Create tablespace test_dataLoggingDatafile 'e:/Oracle/product/10.2.0/oradata/testserver/test_data01.dbf'Size 32 mAutoextend onNext 32 m maxsize 2048 mExtent management local;
Create a user and specify the tablespace:
To SYS users to enter Oracle, SQLgrantsysdbatousername; grantsysdbatousername * ERRORatline1: ORA-01994: GRANTfailed: passwordfilemissingordisabled first, the value of the initialization parameter into EXCLUSIVE if there is still a problem, it may
Create user Oracle to tablespace users without permission alter user username quota unlimited on users;
Creating a temporary tablespace create temporary tablespace test_temp tempfile ' E:/oracle/product/10.2.0/oradata/testserver/test_ temp01.dbf '
Add a sqlserver2000 User Function in asp, and grant the dbo permission to a database ****************** to the user. Note: do not select windows as the authentication method for sqlserver, * ************** allow remote sqlserver connection **********
Suppose we want the user www-date to have the reboot permission, you can use uid/gid for control: # groupaddreboot # cd/usr/local # mkdirreboot # chownroot: rebootreboot/# chmod750reboot/# cdreboot # cp/sbin/reboot. # chmod4755reb assume that we
In a non-sys, system User's stored procedure, query the View starting with v $, such as v $ mystat and v $ statname. These View queries can be used in stored procedures only after authorization is displayed under sys. However, if we use grantonv $
Query the table space Path:
Select * From dba_data_files
Instance:
1. Create tablespace ucitdb_data
Logging
Datafile '/home/APP/Oracle/oradata/ucitdb/ucitdb_data01.dbf'
Size 32 m
Autoextend on
Next 32 m maxsize 2048 m
Extent
Create a login user and perform System Authorization
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Use databasedemo
Go
-- Add the Logon account 'hanguoji 'with the password '123456'. The default
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.