Anything related with user accounts and user management on Unix-like systems.
1
vote
1answer
24 views
How to open a program as another user inside a logged display?
I'm trying to open netbeans as a different user, but isn't working.
I'm running a Kubuntu 12.04 LTS with KDE.
And I tried the following:
Open a terminal, type su - myotheruser, type the myotheruser ...
1
vote
1answer
180 views
Why useradd shows Permission denied error
I am working on CentOS 5.5.
When I run the useradd command as root, then its working.
But when I run the same command from one of the user, then it shows
-bash: /usr/sbin/useradd: Permission ...
1
vote
2answers
49 views
understanding how to run script securely as limited user
I'm a long time dev but linux newbie. I've been building this (http://tryperl.com) to learn linux. So, my question is just about some *nix stuff I don't fully grok.
One of the things I want to do is ...
1
vote
1answer
240 views
Is there a shorter way to change username, home directory and move files at the same time
I wanted to use and have tried
sudo usermod durrantm_test -mdl durrantm_test2
but I get
Usage: usermod [options] LOGIN
...
However
sudo usermod durrantm_test -l durrantm_test2 -md ...
1
vote
2answers
682 views
Allow non-root process to access all home directories without compromising security?
Any ideas how to allow one non-root process to access (read&write) all home directories without compromising security? Normal users should not have access to each other's home directories.
All ...
1
vote
1answer
677 views
How do I set the user of php-fpm to be php-user instead of www-data?
I am using php-fpm on debian with nginx for php5 support.
I would like to have php-fpm to be under the user&group php-user instead of www-data.
I thought the init.d script would have the user ...
1
vote
1answer
1k views
How to show and modify user info in Ubuntu server?
If I want to put some personal information (like Full Name) to an account, how can I check it again? And how can I modify it?
On Ubuntu server. With command line only.
1
vote
1answer
891 views
Changing my default primary GID for every login session
I read the following about newgrp:
The newgrp command is used to change the current group ID during a
login session.
This made me think, how can I change my default's primary group ...
1
vote
1answer
1k views
How do I log out of all my active sessions?
For some reason, I have a few open sessions on an SSH server that I don't know about. I assume they're leftovers from when my pipe broke.
$ users
user1 user2 user3 me me me me
Is there a way to log ...
1
vote
1answer
34 views
How to retrieve information about locked accounts
Is it possible to retrieve info regarding to locked unix accouts?
I am interested in seeing information about what date and time the lockout happend and from what hostname (pc name). I would like to ...
1
vote
1answer
36 views
Securely running LAMP under a specific user
I'm setting up a sandbox type of server that will be used by a couple users as a development environment and knowledge base. The server will have a web frontend so I've installed Apache, MySQL and ...
1
vote
2answers
173 views
How to check how many Oracle user sessions are running
I need to check how many users are connected to server for specific applications through a browser. I'm mainly interested in Oracle. My server runs RHEL.
1
vote
2answers
105 views
Login to super user for running script
I have sample.sh script in /u01/dump location. I'm running it from root.
My requirement is while running the sample.sh script it has to be login as oracle1 user using SU (super user) and display all ...
1
vote
1answer
130 views
Copying a directory to multiple users home dir and changing user/group ownership
On my Ubuntu server there are about 150 shell accounts. All usernames begin with the prefix u12.. I have root access and I am trying to copy a directory named "somefiles" to all the home directories. ...
1
vote
2answers
292 views
Can't SSH/FTP into new user account in Ubuntu?
Created new user from shell script using following command:
sudo useradd $1 -p $2 --home /var/www/$1
I'm not able to login to FTP or SSH as that user, do i need to add the user to some group for ...
1
vote
1answer
1k views
switching from user to root and revers (freebsd)
i want to make some modificaciones with root and then with my user, in fact i want to install sudo and he give me the error in the first step:
cd /usr/ports/security/sudo
make install clean
...
1
vote
1answer
147 views
Create / Edit files in specific folder using different user / group
I want to know if the following scenario is possible.
I am a user called www-admin and I am in the group www-admin. I am also a sudoer.
I want to have all the files I create in the folder ...
1
vote
1answer
63 views
Equivalent of newusers for groups
The newusers command is useful for adding or modifying users in bulk. Is there an equivalent command for managing groups?
1
vote
3answers
162 views
How to make files created by a specific user to have specific permissions by default
Here's a sequence of commands and the resulting output:
$ touch testfile
$ stat -c'%a %A' testfile
644 -rw-r--r--
What must I do so that when a user follows that sequence, I get this output ...
1
vote
1answer
31 views
Username conflicts on a central printer queue
We have just switched to a centralized print queue. The printer is setup with
lpadmin -p SPScolour -E -D "Sustainable Print Colour" -v lpd://xxx.yyy.com/colour
The IT people are saying my local ...
1
vote
1answer
48 views
Which user owns X display?
How to determine, as root, which user owns X display :0? (on a Fedora 18 system with defaults)
1
vote
1answer
430 views
Whoami: cannot find name for user id 0
When I run whoami it says:
whoami: cannot find name for user id 0
My /etc/passwd file looks like this:
root::0:0:root:/root:/bin/bash
1
vote
1answer
226 views
Trouble adding existing user to existing group in ubuntu
I was trying to add a user called bill to www group
useradd -G www bill
It gives me error
UX: useradd: ERROR: bill is already in use. Choose another.
I checked if this user already in the group ...
1
vote
1answer
137 views
Can I export an NFS share with faked root privileges
I'm writing software for an embedded linux system and I'm using an NFS share as root directory. The root filesystem resides in /srv/nfs/rootfs, and it is exported using the following /etc/exports:
...
1
vote
1answer
106 views
For an init.d startup script, what is the ideal user to use as the owner of that process
Everyone says that running processes as root is bad, since it defeats the security and privileges model. But what user should be used to run a startup process? Is it really necessary to create a new ...
1
vote
1answer
151 views
Correct owner, group and permissions when mounting an image file
Suppose I have an image home.img of a home partition of another linux machine (B). On that machine there is a users userB and there is a special group, groupB. Consider for example a file fileB in the ...
1
vote
1answer
867 views
How to create an user only with SSH -access and easily-set-up .ssh -dir perms?
I often mess up when I manually set up the .ssh -dir, easy to forget some flag. I often need to create a new user and only allowing access with SSH, how can I do that? Basically, I want to stop doing ...
1
vote
1answer
172 views
permission and user/group of a program executed through a script
I am curious, in the following scenario, what kind of permission does a shell script or Java program has (owner/group/other)?
There is a script called run.sh, and it in turn calls a Java program ...
1
vote
1answer
199 views
Broken PATH in CentOS 5.x
I am having troubles with typing commands within the terminal on some of our CentOS servers. For example, I have to include the complete and full path to the command (i.e. /sbin/chkconfig vs. ...
1
vote
1answer
52 views
Is it possible to log in in a host with an user created for programs like apache or postgreSQL?
I am wondering whether is it possible to log in in a computer with users like www-data or postgres as I do with my own user. Are some users "allowed to log in" while others not? Is there any ...
1
vote
2answers
109 views
How would you create a user with the HOME_DIR field in /etc/passwd completely blank?
Closest I can come is:
useradd --home / -r --shell /sbin/nologin someuser
But this creates an entry into /etc/htpasswd that looks something like this:
someuser:x:100:100::/:/sbin/nologin
I want ...
1
vote
0answers
37 views
Create a browser only session (Ubuntu) [duplicate]
I was recently in a Virgin media shop and was interested to see that they had laptops running Ubuntu for customers to browse the web on. The setup itself was interesting and I'm wondering if anyone ...
1
vote
1answer
103 views
security concern around adding cron user to web application group
I have a permissions issue on my CentOS 5.6 machine with regards to the cron user.
On my test/staging environment my cron user (picco-cron) is a member of one group - picco-cron, as below:
...
1
vote
1answer
399 views
Creating a proFTPd user
I'm setting up a proFTPd server so I can upload files to my webserver, but I've never tried this before. I've installed proftpd, added a user with a home folder: /home/FTP-shared and added /bin/false ...
1
vote
0answers
227 views
Adding a second user to a system group? [closed]
I am trying to get around a permission issue I am having. The only reasonable option (other than ACL) is to add the user that needs access to the system group of the user that has access. Yes, the ...
0
votes
1answer
43 views
Should I use useradd or adduser?
I am trying to add a new user to the system. I am confused though which command to run: useradd or adduser?
0
votes
1answer
134 views
SSH minimal rights user - su only [duplicate]
Possible Duplicate:
Creating a UNIX account which only executes one command
I am trying to setup a user account that only has as minimal rights as possible.
The user should be able to log ...
0
votes
2answers
798 views
Avoid asking password if `su -m user command` is used under `user`?
If I run the script containing su -m user service userservice start under root user, I do not need to enter the password. But when I run it under user user, it asks passwords all the time. That really ...
0
votes
3answers
4k views
How can I list all user names on Solaris 10?
I forgot a user that I created on solaris 10, so now I would like to list all user names on my server.
Is it possible (I am root user)? What command I should use if possible?
Somewhere on the net ...
0
votes
1answer
63 views
Single-user binary installation location?
I'd like to install a binary for only my user, because I don't have root, and therefore don't have access to /usr/bin. I've tried ~/bin, and it can't find the binary. I'm on Mac OS 10.6.7. Is there ...
0
votes
1answer
96 views
what does 'old' mean in the output of `who -u`?
Title says it all. In the listings of who -u, some of the records show the string "old" in the idle time column. I know that "." means the session is not idle. What's the meaning of "old"? The ...
0
votes
1answer
163 views
Incompatible group permissions in Linux - Is it a bug? [duplicate]
Possible Duplicate:
How to apply changes of newly added user groups without needing to reboot?
I am on Ubuntu 11.04. I am creating another user and placing an existing user in the group of ...
0
votes
2answers
168 views
Best practice when installing programs in FreeBSD?
Just started with FreeBSD and I am not sure whether I need to be root to install programs or not? For example, the manual for installing X11 never says that we should issue su command.
However - it ...
0
votes
2answers
139 views
Can't login into webmin on a VPS
I bought a VPS server, and I have installed webmin on it.
When I want to login to webmin via:
http://88.198.196.118:10000/
it will redirect me to:
...
0
votes
1answer
76 views
Allow all group members to create directories and files
There are 2 users
sftp_user
apache
Both users belong to the updaters group as well as other groups.
New directories and files are created in the
/updates/ directory.
drwxrwsr-x 8 sftp updaters ...
0
votes
1answer
28 views
How to restore the user postgres?
In the second answer in this thread is a warning about changing the UNIX password for "postgres".
I have already changed the password for "postgres".
How could I restore the initially state of the ...
0
votes
2answers
77 views
Change/Create permissions for a folder
How can I create (if the folder is new) or change (if the folder was already existent) permissions for a folder?
In particular, I want to create a subdirectory in /etc/bind/ where I can put the ...
0
votes
1answer
257 views
Difference between passwd and passwd- file [duplicate]
Possible Duplicate:
Who creates /etc/{group,gshadow,passwd,shadow}-?
I have a strange passwd- file in /etc, notice the trailing dash:
root@ubuntu:~# ls /etc/passw*
/etc/passwd ...
0
votes
3answers
117 views
User's name appears as “bash-3.0” on SSH shell
I am working on a Redhat server and one of the users' names appears as "bash-3.0" on the "SSH Secure Shell Client."
His name is appearing correct under /etc/passwd. How could this happen?
How can I ...
0
votes
2answers
342 views
How to suppress su authentication failure warning?
I created an account "diag" and set it as expired (usermod --expiredate 1). Then I have a script which I want to run to log into it, so in the script I use the following command:
su -s /bin/bash - ...