LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-25-2018, 11:11 AM   #1
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Rep: Reputation: 16
chown does not work!


I am running Slackware 14.2, and it turns out that I cannot write to the Downloads directory in my home dir, because it has owner root:root
The solution would seem simple: as root chown jjge:users /home/jjge/Download
However, the owner stays root:root. No error is reported.

lsattr shows -----------I--e---- ./Downloads
The 'I' attribute seems to be set by the htree code, which I never never used.

I do not know whether that has anything to do with ownership, it is just the only difference I have found...

Does anyonr know, how to set the ownership on Downloads? It is pretty inconvenient if you can't write to it as owner...

Last edited by jjge; 10-25-2018 at 11:13 AM.
 
Old 10-25-2018, 01:01 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
glad you got it figured. go slacker go!
 
Old 10-25-2018, 01:40 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You need root permissions to overwrite root files, so 'sudo chown -R <whatever>' might do it.

Otherwise if you think something's rotten
How about as root
Code:
rm -rf Download
and then as yourself
Code:
mkdir Download
I would follow that with a disk check. There's nothing else funny going on, is there?
 
2 members found this post helpful.
Old 11-06-2018, 05:45 AM   #4
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
The "I" flag is immutable no? That need to be set with the chattr command to -I to remove the immutable flag.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 - chown() - Warning: chown(): Operation not permitted pizzipie Programming 11 09-10-2013 03:53 AM
chmod chown doesn't work on external drive desbklyn Linux - Newbie 3 02-28-2012 02:18 PM
chmod/chown does not work on windows partition - cannot open files in windows anix Linux - Newbie 1 10-01-2008 01:40 PM
Trying to execute a shell-script using php but chown does not work stormrider_may Programming 15 04-11-2006 08:59 PM
chown -R ujotne Programming 3 02-25-2004 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration