Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Ubuntu Dapper (newly installed). I had been using Breezy for a long time.
When transferring files from another disk, as root, those files are owned by root when they arrive on my Desktop. When I chown them to change ownership, the terminal returns to the prompt with no error notices. But the ownership has not been changed!
I discovered by trial and error that, if I rename the file (even minimally) after chowning, the ownership change takes effect.
That's OK, but kind of a pain in the neck as I must chown, rename, check permissions and rename back.
Anyone know why this should be happening and how to fix it?
-------------------------------------------------------------------
-rw------- 1 aba aba 0 2007-01-24 11:07 Bank Transfer~
-rw-r--r-- 1 root root 15233 2006-10-26 15:52 Blood Type Diet
-rw------- 1 aba aba 3606 2007-01-26 10:47 Domain People~
-rw------- 1 aba aba 26624 2007-01-24 14:19 DOS Commands~
-rw-rw-rw- 1 aba aba 1098 2005-05-22 16:36 install.rdf~
-rw-r--r-- 1 root root 8979 2006-06-21 20:02 Items re: Ahavas Chesed Work.odt
-rw------- 1 aba aba 777 2007-01-24 18:39 launchy~
-rw------- 1 aba aba 878 2007-01-23 15:15 Linux Help Info~
-rw-r--r-- 1 aba root 774 2007-01-23 17:49 Linux Tasks
-rw-r--r-- 1 aba aba 780 2007-01-23 17:49 Linux Tasks~
-rw------- 1 aba aba 545 2007-01-23 15:18 Network Interfaces~
-rw------- 1 aba aba 0 2007-01-24 19:57 new file~
-rw------- 1 aba aba 1320 2007-01-22 20:08 Panel Font Color~
-rw------- 1 aba root 11 2007-01-08 14:34 Salt Room
-rw------- 1 aba aba 23 2007-01-26 11:12 Site to See
-rw------- 1 aba aba 0 2007-01-26 11:11 Site to See~
-rw-r--r-- 1 aba root 5214 2006-02-28 18:29 Stickies.Backup.txt
-------------------------------------------------------------------
The last file was the one I chowned as a test. If I read this right, it says the ownership WAS changed. But the GUI says it wasn't. I can't delete it from Trash because it says I'm not the owner???!!!
-rw-r--r-- 1 aba root 5214 2006-02-28 18:29 Stickies.Backup.txt
This line says that user aba belonging to group root owns the file. You cannot delete it because the it owns to another group. The right way to change the ownership is to specify both the user and group:
This line says that user aba belonging to group root owns the file. You cannot delete it because the it owns to another group. The right way to change the ownership is to specify both the user and group:
Code:
chown aba:aba Stickies.Backup.txt
as root, should do the trick.
This does not look right to me. I think it says the file is owned by aba and by the group named root. It does NOT say that aba is a member of root.
If I read this right, it says the ownership WAS changed. But the GUI says it wasn't. I can't delete it from Trash because it says I'm not the owner???!!!
the GUI may need to be refreshed after changing somethin in a terminal.
Re: refreshing the GUI, what do you mean? I can't seem to refresh the properties dialog box for a file.
Just guessing......
If you have a file browser window open and then click on properties---then you make a change in the terminal---you may have to:
a. close and reopen the properties dialog
b. Do (a) after reloading (refreshing) the window
This does not look right to me. I think it says the file is owned by aba and by the group named root. It does NOT say that aba is a member of root.
Just wrong english, sorry. I meant the file, not the user, belong to group root. Probably chown has been used to change only user ownership, not group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.