4
votes
1answer
41 views

How to set different window managers to different users under Linux

I want to restrict different users to different sets of window managers. For example, user A: openbox, fluxbox user B: openbox user C: openbox, fluxbox, metacity How can I do it? Additional ...
2
votes
2answers
98 views

Can't unlock linux user account

I've got a Linux box (OpenSuSE 11.3) with a locked-out user account. I logged in as the root account to unlock it with passwd -u <user>, but I get a message 'Cannot unlock the password for ...
0
votes
3answers
52 views

What types of users can I use with “sudo”?

I thought you could only use sudo to temporarily become root: sudo vim /etc/resolv.conf But recently I saw a shell snippet depicting a user using sudo to become a specific user: sudo -H -u devops ...
0
votes
1answer
59 views

users not found in /etc/passwd

I login to a linux box with username user1 and my home folder is in /home. There is another user named user2 that has its home directory in /opt/data/folder. If I want to check the list of users I ...
1
vote
2answers
69 views

Linux: Find out who was logged on when?

I need to find out which user screwed up the ssh config. There's nothing in anyone's bash history. But I did see when a bunch of ssh-related errors in the logs that started at a specific time. I'm ...
0
votes
0answers
23 views

Setting Up Quotas issue (Linux)

i am trying to set up Quotas, there are many tutorials that i have found out there but its seems that i have a problem with filesystem. I am trying to open /etc/fstab and these are all of its ...
0
votes
1answer
42 views

Enable Remote Access Linux

It might sound very basic question but I am beginner on Linux... I have created a few users on my Linux distribution. I would like to enable Remote Connection through SSH for some of these users not ...
0
votes
2answers
203 views

Login to server through PuTTY and then switch user

I am using the following batch file to log in to my server as root: start C:\Putty_all\PUTTY.exe -v -ssh root@192.168.32.125 -pw password When I have logged in, I want to change user to oracle. How ...
2
votes
3answers
95 views

Allowing only owner to edit files windows/ubuntu

I am not sure if this is answered elsewhere or it is too obvious but I need to have a folder that I create with a new user(admin) both on windows and ubuntu (wherever it is possible - preferably both) ...
2
votes
2answers
151 views

quick way to adduser and userdel in multiple machines

Currently I just go to each of our servers to type adduser <username> --firstuid 1101 --gid 1001 --disabled-password to add a user. Is there a quicker way to do so on all servers at the ...
1
vote
3answers
133 views

How can I migrate all of my Linux settings (& home directory) to a new computer?

I have a Linux machine (Linux Mint, KDE), which I've been using for some time, but now I've got a new machine with an already existing Linux on it (Kubuntu) and I'd like to "relocate" my Linux system ...
0
votes
2answers
69 views

Ubunu Server Inherit directory permissions and ownership

Before I begin, I apologize if this may seem as if it is a duplicate question, but no responses that I have found have been able to solve my problem. I have a server setup running my company, with ...
1
vote
0answers
51 views

Adding domain users to CUPS allow list

CentOS 6, CUPS. I've been able to log in with my user account to the web admin CUPS login, but I can't work out how to log in with a domain user account (on the Command Line, it's domain\user). Does ...
3
votes
1answer
74 views

Create a new user at startup in Fedora Linux

I have this virtual machine with Fedora KDE. I want to distribute it but without any default user, except the root of course or another skeleton one. In the first run the person that runs it should ...
1
vote
3answers
968 views

Can a Linux user belong to more than one group?

Can a Linux user belong to more than one group? If it is allowed, then one use may access files from two groups, that would be quite nice! If not, is there any alternative way to have this function? ...
1
vote
1answer
70 views

Will changed username propagate to file permissions?

I ran lastb and found login attemps that used my username. I doubt they would guess my password, but my 4-lowercase-letter dictionary username should probably be made more complex. I'm going to add ...
0
votes
1answer
165 views

Running nginx as the current user

On my linux PC, I'd like to run nginx as whatever user I'm logged into when I start it, and I'd like it to look for config files in the home directory of that user. Is there a way to install nginx to ...
0
votes
3answers
441 views

How to create an ubuntu user with partial sudoer rights

Am wondering whether it's possible to create a user in ubuntu 11.10 server with custom sudo rights.I mean by that an use who can start and shutdown the box but who can't access /var/www for example or ...
0
votes
0answers
71 views

Changed login for a user with encrypted home, now I can't login

I changed a user's login by doing this: $ usermod old_login -l new_login I also wanted to move his home to reflect his new username, but it wouldn't let me, so I just rebooted. But now after I ...
0
votes
2answers
139 views

How can I recreate my user in Ubuntu?

I would like to start from scratch. How would I delete my user, including all data, but still have a way of recreating it? My user is the only user on the computer. It is also the administrative ...
1
vote
1answer
93 views

User belongs to different groups when logging in via control alt F1 than via ssh or su, including su -

Made a guest account for a friend to access my machine and restricted him to a very small set of permissions. That seems to work as expected using ssh, when running id and groupsthe correct groups are ...
0
votes
1answer
76 views

Dummy Linux user for installing programs

I have a separate home partition, so I want to install some software from source in a different hierarchy – not in my user account, preferably in /home. To rephrase, let's say I have my home ...
0
votes
3answers
311 views

Prevent write access for root in home directories

Is there a Linux distribution that prevents root user from modifying/deleting files/directories in another user's home? I came across tools that allow the home directory to be encrypted. But I want ...
1
vote
1answer
148 views

su - for some users

in a linux system with su - any user (with root password) can get root privileges. how I can restrict to some users ? // similar to AllowUsers in sshd_config
1
vote
1answer
398 views

Linux file permissions seem right but I can't write to a directory

I believe that I have the permissions set correctly but I can't write to a directory. Here's my problem: cborders@Kraken:/var/www$ ls -la total 12 drwxrwxr-x 2 webz webz 4096 2011-12-30 14:58 ./ ...
4
votes
1answer
1k views

Rename user's group name

I just did usermod -l login-name old-name to change the username, but the group name is still the old one. Any way of renaming the group name? I can't find any info to do so.
0
votes
5answers
426 views

Second root account

i'm new in linux, so i'm sorry if my problem is a bit confusing. I'd like to do following: create a second root account write the file by using this account the first root account shouldn't be able ...
0
votes
1answer
2k views

How to add LDAP user to existing local group in RHEL?

I'm attempting to add some of our LDAP users to a locally defined group on our RHEL server, however I get an error stating that the LDAP user is not found in /etc/passwd. What would be the best way ...
0
votes
1answer
10k views

How do I create a superuser from the command line in Ubuntu? [duplicate]

Possible Duplicate: How to create a admin user on ubuntu How can I create a superuser in Ubuntu 11.10? I need to create it using the command line. Either we could change a normal user to ...
0
votes
2answers
1k views

Forcing group and permissions for created file inside folder?

I need that for the folder /var/www when my user testuser creates a file the permissions are g+rwx and the files belong to the group www-data Any idea of how could I do that ? Cheers. EDIT: I'm ...
1
vote
1answer
284 views

Giving a user permission to the /home directory

I am using CentOS 5.x. I would like to give a user permission to write on the /home directory. Do I have to make it a sudoer? Or is there any other better way for that?
1
vote
4answers
261 views

How to alter output from the 'who' and 'w' command?

I don't want my users to see each others ip's/login info so I want to alter the output when they use the 'who' and 'w' commanda to hide that info - is there a way to do this?
0
votes
1answer
1k views

Login issue - .bashrc permission denied?

I logged in as root user and create a new user and set the password. But I am unable to switch to the newly created user. What is the permission problem of .bashrc file with root user? # adduser -m ...
0
votes
1answer
1k views

finger command not working?

I am using amazon linux AMI on EC2 cloud. chfn command is working fine and i am able to change finger information. But finger command is not working. Any clue to solve the issue? # chfn testuser ...
3
votes
2answers
2k views

How can I list all locked users in Linux?

How can I list all locked users in Linux? usermod -L user_name This command locks a particular user. Does Linux have any command that lists locked user?
3
votes
1answer
327 views

GID for new user is not taking system default value 100?

New user is not taking system default Group ID. System default group id for new user is 100. Whenever i create a new user, GID as well as UID increments by 1. I can understand UID but GID should be ...
0
votes
1answer
2k views

The correct way to move /home to another partition on linux

I've moved /home to a separate partition, this involved creating and mounting the new partition, copying the old home directory over to the newly mounted one, editing fstab to mount the new partition ...
5
votes
3answers
2k views

Is it possible to alias a username on Linux?

I'm not sure if this has a practical application at all (aside from the fact that I am lazy. you know "christopher" has 11 characters, and I want to type 1), but is it possible to alias a username on ...
4
votes
1answer
2k views

Change location of root's home directory

I would like to change the location of root's home directory from /root to /var/root. I used to be able to do this with usermod: usermod -d /var/root root However, with the latest version of ...
0
votes
4answers
683 views

Debian: get the login name from UID

What I need is something like: $ who-has-uid 1000 cyrus I know the file /etc/passwd contains such informations, I'm not asking a script that parses it.
1
vote
0answers
23 views

Account specific interface binding [closed]

Im looking to have applications started from different accounts automatically bind to a specific interface. for example: applications started on accountA bind to eth0 and applications started from ...
1
vote
2answers
765 views

`adduser [options] user group` fails ubuntu 11.04

I'm want to use adduser However it doesn't seem to work if I provide the second argument for the user's group root@a:~# adduser rick staff adduser: The user `rick' does not exist. The group exists ...
0
votes
1answer
134 views

What happpens to /etc/passwd- file when useradd command fails

I know that when a user is added using the useradd command, it creates a backup of /etc/passwd in /etc/passwd-, and then add the new user into the /etc/passwd. Suppose if by some chance the useradd ...
0
votes
1answer
121 views

How can I allow user A to run commands as user B if I don't have access to root?

CentOS 5.6 There are two users; user A and user B. I have permissions for both and can log in as either. I would like to be able to log in as user B, and somehow run commands as user A without ...
1
vote
2answers
105 views

Setting up a computer for users with limited computer knowledge [duplicate]

Possible Duplicate: Good Linux Distributions for Newbies I will be setting up a computer for people who have very little experience using computers and I want to limit their ability to ...
5
votes
2answers
4k views

Running Apache as a different user

When I run the ps -efH command to list out all the process, I can see Apache running as root and seems to have sub-processes running as www-data. Here's the excerpt: root 30117 1 0 09:10 ? ...
0
votes
1answer
26 views

Directory Group Issue?

I have a directory that needs to be owned by nginx user and I need to access it via other users in order to add/edit/delete files in it. So I created a group called www and added both then chgrp -R ...
2
votes
1answer
827 views

user and group ids scrambled when using NFS

I'm using nfs to mount the folder /mirror from a server onto a node. This works, except on the node the user and group are displayed as "4294967294". On the server: ls -al ./ displays -rw-r--r-- ...
4
votes
2answers
406 views

Why is the output from `groups` different from `groups user` if Im currently logged in as user?

Im not sure why the following have different output. My understanding is that groups without specifying a user give all the groups the currently logged in user is a member of. jacob@box:~$ groups ...
1
vote
2answers
94 views

Find out who I was before I had switched users in Linux?

$ whoami a $ su b Password: ... $ whoami b Is there a whowasi command? Some way to find out that I was user a before I had become user b?

1 2