The chown command (abbreviation for change owner)
0
votes
1answer
10 views
Can I set a specific group|umask to be the default one for all actions within a certain path?
I would like to override the default umask and owner:group settings within certain directories only, without requiring root privileges, as that kind of defeats the purpose.
For example, when I touch ...
1
vote
3answers
64 views
Why can't I set group and ownership of one folder without afffecting the other?
I've upgraded an Ubuntu PC from 10.04 to 12.04.
Problem is all the permissions were wrong on the home folders.
So, I did the following:
sudo chown -R james:james /home/james/*
sudo chown -R ...
0
votes
2answers
19 views
Can't access function after chown command
I was using this command chown root:www-data /var/www/example.com -R,
but there was a message shown that directory not listed.
1
vote
1answer
44 views
Should I install non-repository software as root or as my user?
What is the right way of installing programs that are not available in repositories: should my user own the binaries and keep them in ~/bin/, or should root own the binaries and keep them in, say, ...
0
votes
1answer
33 views
Cannot access the hardware
Last night I did a very stupid thing by changing the owner of the directory /usr using the following commands
su
password:
chown username:username /usr
Now the problem is that I cannot access the ...
0
votes
0answers
77 views
Instalation of MySql Cluster problem - Can't change dir (Errcode: 13)
I want to install MySql Cluster on my Ubuntu 12.04(64bit).
I am using MySQL Cluster Quick Start Guide – LINUX for instructions.
I have changed ownership of $HOME/my_cluster and $HOME/mysqlc to mysql ...
0
votes
2answers
55 views
weird change of owner for user home dir when installing vettle
All of a sudden my home dir turned to be owned by user '1016':
drwxr-xr-x 96 1016 1016 20480 Apr 2 2010 albert
drwxr-xr-x 32 guest guest 4096 Mar 16 13:46 guest
I don't understand how that ...
0
votes
0answers
18 views
Logging in loop
I have an error that seems to have been reported before but not solved by previous answers. When I try to log in as my primary account, I get a blackscreen and go back to the login menu. I am very ...
0
votes
2answers
45 views
Why do I get an “Operation not permitted” error when running duplicity as sudo?
Currently I'm backing up my /home/ folder to a usb mounted on /media/liamzebedee/X using duplicity. When I go to restore the folder to the USB however (using sudo), I get the error -
Error ...
1
vote
0answers
105 views
How do I know my system is broken after chown -R root usr/bin?
This question is related to another question -- "Can't access any functions after chown command." -- but I think it may be worthy of an independent question. My question is: how do I know that my ...
0
votes
1answer
86 views
Can't log in although password is correct
Im fairly new to ubuntu so bear with me on this. I was doing an assignment for my CSCI 323 class that required Manually adding a new user and my problem came about after I followed these instructions:
...
0
votes
2answers
67 views
Is it safe to chown `/usr/local`?
I know what /usr/local is for - installing software for the local machine. By default, root owns the directory. This means that to install there, you need to use sudo. For a single-user or developer ...
0
votes
2answers
34 views
Is it possible to change the group of a file if I am not part of that group?
Is it possible to use chgrp or chown to change a file's group to one that I as the owner am not a part of? I own the file, but I am not part of the group that I want to change it to, so can it be done ...
1
vote
1answer
181 views
How to fix “chown: invalid group:” if the user does not exist on the running system?
I want to fix permissions on another disk with chown. Set the permissions to a user which does not exist on the system which is currently running.
Does that work without adding the user?
1
vote
3answers
82 views
Control file access per user?
Embarrassed to ask this, but have never had to face this before, so... here goes.
Some things to know:
I have terabytes of storage on a PC that is connected to my television.
I have kids who think ...
1
vote
1answer
74 views
chown select files only
I use the (excellant) unison to sync two file servers and I've just realised i've synced a number of files without using the switch in unison that maintains the file user ownership. these files now ...
0
votes
1answer
40 views
Filesystem owner changed by mistake
I ran this command on my ubuntu 12.04 by mistake:
chown someuser / -R
On RHEL it would be fixed by this command:
rpm --setugids -a
Is there anyway to fix it in ubuntu server?
2
votes
1answer
84 views
Locked out of drive on Ubuntu Server
I was trying to delete some torrents that I had downloaded with transmission-daemon and was unable to from my samba share on windows due to transmission's default file creation permissions.
I ...
1
vote
1answer
2k views
chown: changing ownership of ` ': Operation not permitted
I know this is possible duplicate but I looked at other answers and wasn't satisfied with the responses. You should be able to use the chown command if you are the super user OR the owner of the file. ...
1
vote
1answer
321 views
12.04 LTS won't boot after modifying root directory permissions
I accidentally changed permissions to root directory on my system and now my system won't boot, I tried to fix packages from grub recovery and check file system but nothing.
Here's the code I ...
0
votes
0answers
167 views
User account chown
I am a novice Ubuntu user. Mine is Xubuntu Ver 4.8.
I was then unable to access my user account named tomato. Everytime I login the splash, it just went back to the login page. So I tried browsing ...
0
votes
1answer
120 views
I modified the permissions of /var what have I broken?
So I did a dumb thing, I chowned /var to a single user and now I am getting errors everywhere,I had to add permissions so that mysql and lighthttpd would start, any easy way to revert changes or must ...
3
votes
1answer
132 views
Directory permission
I am running 12.04 x64 server on ext4 disk. There are two user groups 'A' and 'B'. For a specific directory, I would like to give its all permissions to user group 'A'. Also I would like to give only ...
0
votes
1answer
218 views
Writable permission is not writable
I am running Ubuntu 12.04 x64 server on ext4 partition.
I set a directory's permission to '766' as below.
sudo chmod 766 /archive
drwxrw-rw- 3 root root 4096 Sep 27 10:50 archive/
But, when I ...
4
votes
1answer
188 views
Assigning different directory permission for each different groups
I am running Ubuntu 12.04 64bit server on ext4.
There are four user groups - marketing, sales, admin and etc.
I need to assign different permissions to /archive as follows:
rw for the marketing ...
0
votes
0answers
31 views
Insufficient permissions within Eclipse when installed via synaptic in Ubuntu 12.04 [duplicate]
Possible Duplicate:
Why does Eclipse's “Check for updates” not work
I installed Eclipse via the Synaptic Package Manager on Ubuntu 12.04 Desktop (more details on footer). ...
0
votes
1answer
125 views
directory permissions adding user in a group
I added a user using useradd
useradd -g upperdevs myuser
But when I do an id check I didn't see the upperdevs group.
id myuser
#uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),27(sudo)
...
0
votes
1answer
268 views
How to correctly set permisions for all subfolders and files
I am following the guide to install TinyOS on Ubuntu 12.04
I have done up to step 3, But I am not sure if I have done the step 3 correctly. Because by doing the step 4 I get the permission error :
...
0
votes
0answers
473 views
Setfacl operation not permitted - UNCONFIGURED FSTAB
I'm trying to setfacl some of directories (located on my home path) by doing:
$ sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
Getting
...
setfacl: ...
1
vote
1answer
70 views
Why are “ls” and “stat” returning different ownerships for the same object?
This is in a continuation of question here
I run this command as root user
chown someuser:someuser /mnt/my-address
and then
# ls -l /mnt/my-address
response is
total 16
drwx------ 2 root root ...
2
votes
1answer
621 views
changing ownership and permissions of /usr/bin/ and /var disables ssh
I recently made changes to /usr/sbin and /var: chown root:root and then did chmod 775 for each. I basically wanted to only have the root user, and those users that belong to certain groups access ...
1
vote
1answer
621 views
How to provide user permission to read, write on `/dev/sdax`? What is the syntax?
I have two my hard disk divided into two partition (apart from swap).
First one is /dev/sda3 on which I have my ubuntu installation. Second one is /dev/sda1. Now, when I try to copy a file to ...
2
votes
4answers
839 views
Permissions for apache webroot folder on dev server?
I am a web developer and have Apache setup on my local system for testing.
I keep running into issues with the permissions e.g. unless I chmod any new directories to 777 my IDE cannot write to the ...
1
vote
1answer
277 views
How can I add file create read write and delete for a specific user?
Question:
I need to give file create, read, write and delete access to /var/log for user bind only.
How can I do that, short of allowing read and write and delete access for everybody ?
0
votes
1answer
355 views
changing ownership of usr, resulting on graphics and sudo not working anymore
I made a massive mistake by recursively changing the user of every file under /usr . I can't boot my laptop by any normal means following this mistake, and I'm looking for a way to revert the effects ...
0
votes
3answers
151 views
Correct syntax for using chown on cmd line?
I am trying to change ownership on a file but am having trouble, before it used to work, now I think I am using the wrong syntax,
chown -R Person:User **
or is it users? I tried both and none work, ...
1
vote
1answer
486 views
authentication problem at Ubuntu 12.04
I get this error when I try to authenticate using Gnome GUI. I have NO authentication problem when I use terminal. It is suggested here that I need to do
sudo chown -R myusername:myusername ...
2
votes
1answer
404 views
How to use `chown` and `chmod` to make a “pipe” or “pass through” link from guest directory to elsewhere
I want to either extend the size of my guest partition or figure out how to copy stuff from the guest partition to my normal /home directory.
(Because of some other problems I can only run Xorg as ...
1
vote
1answer
369 views
changing permissions of `nyccrash.txt': Operation not permitted
I have an assignment to write PHP code, and upload the data to our school student's account. To make sure my script is working, I need to change the permissions on the files.
I am not a root because ...
2
votes
1answer
2k views
How to change ownership for an external HDD?
I've got an external HDD (640 GB), with file system FAT32. I want to change the ownership of it from root (default) to angstrem (my username). The system is mounted to /media/exthdd. I try to do that ...
3
votes
1answer
111 views
Changed permissions of / to user
I stupidly ran sudo chown -R carlos:carlos / and carlos is my user. This changed all files to be Carlos and I could not boot up again (because the root files were now owned by #1000) and I cant get ...
1
vote
2answers
1k views
Unable to Login (Ubuntu 11.10)
I'm having a weird issue. When I put my password using my account (ramiz) on the login screen of GUI, a blink of screen and it take me back to the login screen. I tried with Guest user and it is ...
4
votes
1answer
652 views
Is it possible to change owernship of a file without root access?
If a User A owns file.txt, can User A change the ownership of the file to User B without root access? When i run a chown B file.txt as user A, I get a Operation not permitted error. It seems to me ...
6
votes
4answers
6k views
Permission denied on ~ even though owner listed as me
Somehow, I managed to chmod and chown my ~ into oblivion.
When I attempt to login through the shell, I get
bash: ~/.bashrc : Permission denied
Even after (as root) I've run
chown -hR nroach44 ...
0
votes
1answer
178 views
Is it possible for a directory to change permissions of the files that are added to it?
I have a directory and I want all files that are put in it to have the permissions of **5. In other words I want the permissions of the owner and group to stay the same but the permission to be read ...

