I have recently installed Raspbian into a Raspberry Pi. As part of the installation process I changed the user name and group from the default (pi) to my own (let's call it user) using usermod and groupmod. I as well moved the home directory (/home/pi) to the new user name (/home/user) using usermod.
I am using Fedora 9. I removed the user using userdel -r command. The user is removed, but the home directory still remains. When I tried to remove the home directory (rm -rf /home/user/), I get the following message:
rm: cannot remove '/home/user/.gvfs': Permission denied
This happens on random occasions. Which scenario does this occur? Why is this occurring?
Okay so to follow up my first question: User home directory being deleted from the source, we are now running into the issue where the home drives disappear on the target, so far it only (and I use this term loosely) happened to one user.
So here is the scenario again, we used robocopy to copy over our file server to a new & improved server.
I am on Ubuntu 11.04.
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. After copying the directory the user and group ownership of the directory should be changed to user's. Username, group and home-dir name are same. How can this be done?
When I first installed ubuntu server 10.04 I created my first user 'bonzo'. When I'm logged in as bonzo the permissions on directory /home/bonzo are 755. However when I'm logged in as any other user the permissions on the directory /home/bonzo are 500.
The exception to this is if I'm logged in as bonzo and I type su dummy1 and then follow up with ls -lh /home.
i want to skip the /home/user/mail directory in an rsync
but only in this level
not like /home/user/public_html/anotherscript/mail
if i have a command like this
Code:
rsync -av --exclude mail /home/$USER root@$SERVERIP:/home2
does it exclude only the mail directory directly under /home/user?
(this is what i want)
/home/user/mail
or is it going to exclude any directories containin
Hi,
Currently i'm logging as a user say atgdev. When I login it takes me to directory /.
I see the home directory set as /home/atgdev/
I want that when i log in it shud directly go to my home directory i.e /home/atgdev/.
I thought .profile in /home/atgdev/ will be invoked first when i log in. So I had cd $HOME in .profile but still it didn't redirect me to home directory when i log in.
Strange. You should have no problem. I use encfs. I guess I can just tell you how I have it setup and maybe that will allow you to see what is wrong with your setup.I have a directory ~/.Documents and the unencrypted pass-through directory is ~/Documents.