want to create a user account for each of the key programs installed on my debian server. For example, for the following programs:
Tomcat Nginx Supervisor PostgreSQL
This seems to be recommended based on my reading online. However, I want to restrict these user accounts as much as possible, so that they dont have a shell login, dont have access to the other programs and are as limited as possible but still functional.
Would anyone mind telling me how this could be achieved? My reading so far suggests this:
But I think there may be a more complete way of doing it.
A few of the other employees here need to learn "vi" in order to use crontab to schedule / unschedule jobs on one of our production servers. I tried to set up a login on one of my Linux boxes for them to use "vimtutor", but scrapped it and decided to try for something more secure, since there are... (1 Reply)
I am a bash shell programmer and I create programs on occasional basis.
Now, I dont want my programs to be run by typing out its name at a command line. I want to make it as user friendly as possible. I want to create icons on the desktop so users can click on it. mind you, I said "desktop... (7 Replies)
Hi,
I need to provide execute access to certain users and not to all users
For ex: if ther is a file /home/august/aug.sh.
and there are user's like jan,feb,mar,april,May and jan is the owner of that box. I need to provide execute access to feb and mar only. I also know the root pwd for... (3 Replies)
Hi,
We have Oracle Database on AIX 5.3 server.We want to give ftp access to a user to a specific folder.He should be able to put and get files from that specific folder only.Moreover he should not be able to cd to any other filesystems also along with root directory.
Please note that as per... (1 Reply)
Hi,
I am a newbie to Linux and I want to create a user which can only execute network config commands like ifconfig and ping(to check the config). The following is what I did but failed.
1) Created a group called 'netconfig'.
2) added a user named 'user'.
3) added user to the 'netconfig'... (4 Replies)
Hi All ,
Some of the users should be restricted using the MV commands on some of the standard folders. We had an issue the other day like from the standard folder structure which was set up one of the user has moved a folder to a different location and the jobs failed as the folder was not... (6 Replies)
Hi,
What is the command or how to create a user with the restricted usage of space on a disk.
Also let me know how to change the limit of the space size allotted in future for the same user.
~Vinodh Kumar V M (3 Replies)
I have solaris 10 os 64 bit.
I need to create a restricted user which has the following command to run
ls
df and du
list crontab of root and edit crontab of root also
please help (2 Replies)
Hello everyone
I need to create a restricted user or a special user. Here is what I need.
I have this path
next to profiles I have server1, server2, server3.......
The user that I have to create I need that he can move between server1. server2, server3 because in every one have logs... (1 Reply)
Hey guys,
Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries.
However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies
LEARN ABOUT REDHAT
create_user
CREATE USER(7) SQL Commands CREATE USER(7)NAME
CREATE USER - define a new database user account
SYNOPSIS
CREATE USER username [ [ WITH ] option [ ... ] ]
where option can be:
SYSID uid
| [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password'
| CREATEDB | NOCREATEDB
| CREATEUSER | NOCREATEUSER
| IN GROUP groupname [, ...]
| VALID UNTIL 'abstime'
DESCRIPTION
CREATE USER will add a new user to an instance of PostgreSQL. Refer to the Administrator's Guide for information about managing users and
authentication. You must be a database superuser to use this command.
PARAMETERS
username
The name of the user.
uid The SYSID clause can be used to choose the PostgreSQL user ID of the user that is being created. It is not at all necessary that
those match the Unix user IDs, but some people choose to keep the numbers the same.
If this is not specified, the highest assigned user ID plus one (with a minimum of 100) will be used as default.
password
Sets the user's password. If you do not plan to use password authentication you can omit this option, but the user won't be able to
connect to a password-authenticated server. The password can be set or changed later, using ALTER USER [alter_user(7)].
ENCRYPTED
UNENCRYPTED
These keywords control whether the password is stored encrypted in pg_shadow. (If neither is specified, the default behavior is
determined by the PASSWORD_ENCRYPTION server parameter.) If the presented string is already in MD5-encrypted format, then it is
stored as-is, regardless of whether ENCRYPTED or UNENCRYPTED is specified. This allows reloading of encrypted passwords during
dump/restore.
See the chapter on client authentication in the Administrator's Guide for details on how to set up authentication mechanisms. Note
that older clients may lack support for the MD5 authentication mechanism that is needed to work with passwords that are stored
encrypted.
CREATEDB
NOCREATEDB
These clauses define a user's ability to create databases. If CREATEDB is specified, the user being defined will be allowed to cre-
ate his own databases. Using NOCREATEDB will deny a user the ability to create databases. If this clause is omitted, NOCREATEDB is
used by default.
CREATEUSER
NOCREATEUSER
These clauses determine whether a user will be permitted to create new users himself. This option will also make the user a supe-
ruser who can override all access restrictions. Omitting this clause will set the user's value of this attribute to be NOCREA-
TEUSER.
groupname
A name of a group into which to insert the user as a new member. Multiple group names may be listed.
abstime
The VALID UNTIL clause sets an absolute time after which the user's password is no longer valid. If this clause is omitted the login
will be valid for all time.
DIAGNOSTICS
CREATE USER
Message returned if the command completes successfully.
NOTES
Use ALTER USER [alter_user(7)] to change the attributes of a user, and DROP USER [drop_user(7)] to remove a user. Use ALTER GROUP
[alter_group(l)] to add the user to groups or remove the user from groups. PostgreSQL includes a program createuser [createuser(1)] that
has the same functionality as this command (in fact, it calls this command) but can be run from the command shell.
EXAMPLES
Create a user with no password:
CREATE USER jonathan;
Create a user with a password:
CREATE USER davide WITH PASSWORD 'jw8s0F4';
Create a user with a password, whose account is valid until the end of 2001. Note that after one second has ticked in 2002, the account is
not valid:
CREATE USER miriam WITH PASSWORD 'jw8s0F4' VALID UNTIL 'Jan 1 2002';
Create an account where the user can create databases:
CREATE USER manuel WITH PASSWORD 'jw8s0F4' CREATEDB;
COMPATIBILITY
The CREATE USER statement is a PostgreSQL extension. The SQL standard leaves the definition of users to the implementation.
SEE ALSO
ALTER USER [alter_user(7)], DROP USER [drop_user(l)], createuser(1)SQL - Language Statements 2002-11-22 CREATE USER(7)