LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-05-2005, 05:47 AM   #1
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Rep: Reputation: 0
unable to change ownership


Hi .... i juz installed madrake linux a few days back ... im not able to log onto kde from my normal user ...only if i log in as root im am able to get into kde .. it gave some error as not able to find some running process ... i looked up the ownership of /home/arjun... Owner and group were both root ...When i tried changing this to arjun while logged in as root ..it said i dont have nescessary permissions to do so ...Plz help
 
Old 09-05-2005, 07:27 AM   #2
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
ok seems strange.

try this logged in as root

chown -R arjun /home/arjun
chgrp -R arjun /home/arjun

give console output if you can as well
 
Old 09-05-2005, 08:47 AM   #3
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
hey ...i tried the command while logged in as root as u said .... it said : " Operation not Permitted" for all the files and subdirectories in the directory ...
Same thing happened for chgrp as well
 
Old 09-05-2005, 09:10 AM   #4
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
give me the exact output of
ls -l /home
 
Old 09-05-2005, 09:11 AM   #5
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
another thought. as root can you cd to /home/arjun
 
Old 09-05-2005, 12:00 PM   #6
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
As for your Second q ..yes i can cd to /home/arjun
And this is the output of ls -l /home
total 12
drwxrwxrwx 10 root root 4096 Sep 5 22:20 arjun/
drwxrwxrwx 2 root root 4096 Sep 5 01:00 Recycled/
drwxrwxrwx 3 root root 4096 Sep 4 14:08 simba/


one more thought ...both the directories arjun and simba are in a local disk of type fat32 ... ie only those directories i access from /home are in fat 32 ..... might this be causing the problem ? .... if so what do i do ?

Last edited by arjunjeyaprakash; 09-05-2005 at 12:04 PM.
 
Old 09-05-2005, 02:29 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
It definitely DOES cause the problem.

Having ANY linux files residing on FAT is VERY poor
practice for varied reasons. If you have no way of
changing the file-system (which you REALLY should)
to something more linux, like ReiserFS or ext2/3, try
changing the fstab entry for the partition to match your
user-id, e.g.
/dev/hda2 /windows vfat user,rw,uid=<yourID>,umask=0002 0 0

However, I can't emphasise strongly enough that this
is a BAD IDEA.



Cheers,
Tink

Last edited by Tinkster; 09-05-2005 at 02:30 PM.
 
Old 09-05-2005, 06:24 PM   #8
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
hey tinkster love your work, you seem to be on almost every thread going!!

it does seem somewhat strange that the 'Recycled' dir is in /home.

i thought this was be user specific and therefore in each user directory..... no wait. that would be why. sorry scrap that.. just got back from the pub. quite slow.

you get 'Lost + Found' at the base of every fs and obviously for FAT32 'Recycled' there instead.

i personally can't really see any real reason why it should cause a problem that its on FAT32 drive but i guess the permissions could be causing a problem.

i don't like to trust anything microsoft so i'd never do what you have personally but how did you manage to set your home directories on another drive?

i like the classic have your home dir on the same drive and use whatever other drive to store all your data. much easier.
you might have something to say about that tink but thats my closed minded view. (only been using linux a couple of years and although have experimented a fair amount i get he feeling from what i've read by you in the past that you know your stuff so feel free to slate me)

peace
 
Old 09-05-2005, 07:05 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
Originally posted by pats
hey tinkster love your work, you seem to be on almost every thread going!!
Heh - thanks for the kudos :}

Other mods are more active and/or more knowledgeable.

Quote:
i personally can't really see any real reason why it should cause a problem that its on FAT32 drive but i guess the permissions could be causing a problem.

i don't like to trust anything microsoft so i'd never do what you have personally but how did you manage to set your home directories on another drive?
The problem is that FAT and/or NTFS have NO knowledge
of OR facilities to accommodate Linux ownerships/permissions.

The pseudo-perms and ownerships we see in a mounted FAT
partition are applied on boot, not inherent in the file-system.

Hence, if /home resides on a FAT partition ALL users homes
under that will have the same owner.


Cheers,
Tink
 
Old 09-06-2005, 08:22 AM   #10
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
good point. very good point.

i think the leson there is just don't use FAT (unless your using it to share between windows and linux)
 
Old 09-06-2005, 09:05 AM   #11
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Thx for all the HElp ....how do i change the File system type? ..i have partition magic ..will that work ? should i format the drive ?
 
Old 09-06-2005, 09:18 AM   #12
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
theres a few things you'll have to do tho.

firstly set your home dirs to be elsewhere. not sure how to do that.

then reformat the drive to ext3 or similar. Tink mentioned riserfs. its an option but its probably easier if you stick with ext3.

***Make sure you back up any data beforehand***

if its a new install and you've not done much to it yet i'd just reinstall rather than spend ages messing about
 
Old 09-06-2005, 02:02 PM   #13
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
thanks pat and tink ....i reinstalled Linux and made the home directory mount off a ext3 partition ...works now .. Thx again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot change ownership jamaso Slackware 11 11-08-2010 11:01 AM
Change ownership apffal Suse/Novell 1 11-09-2005 02:08 AM
How to change ownership of a drive? raid517 Linux - Software 1 09-15-2005 08:15 AM
change ownership Johng Linux - General 4 04-06-2004 02:24 AM
unable to modify ownership or group as root bubblehead Linux - Newbie 0 11-24-2003 09:15 PM


All times are GMT -5. The time now is 07:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration