LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-08-2005, 01:45 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
How to give permission to /home partition


I did an installation of Mandriva 10.2 and saved my /home partition before upgrading. Mandriva notices that there is a /home partition, but I am unable to read or write to it because it says that I do not have permission to write to that /home partition. I've had this happen before when I upgraded to Mandrake 9.2 and I can't find my thread anymore. I have to do something funky like chmod ### something or chown ### something.
 
Old 05-08-2005, 02:24 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
chown <username> <directoryname> sets ownership to <username>.

chmod u +rwx gives user the read-write-execute permissions. In this case, execute means permission to cd into the directory.

PS: you may have to su to root in order to issue these commands.

Last edited by bigrigdriver; 05-08-2005 at 02:25 PM.
 
Old 05-09-2005, 04:10 AM   #3
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
A few years ago when switching distros I had a similar problem. It turned out that the old distro had assigned my user uid:gid as 500:500 while the new distro used 501:501. Changing the entry in /etc/passwd fixed it.

A recursive chown may also fix the problem, but there may be files in there that have been setup for another group such as "audio" to access.
 
Old 05-09-2005, 05:49 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by camelrider
A few years ago when switching distros I had a similar problem. It turned out that the old distro had assigned my user uid:gid as 500:500 while the new distro used 501:501. Changing the entry in /etc/passwd fixed it.

A recursive chown may also fix the problem, but there may be files in there that have been setup for another group such as "audio" to access.
Camel - how do you figure out what your old uid:gid was? My current one now is 500:500
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM
Howto give permission to hole directory js72 Debian 3 12-08-2004 04:50 PM
How to give permission to DVD-ROM? Micro420 Mandriva 19 01-21-2004 01:41 PM
How to give user permission to suspend with apm Bagleemo Linux - Laptop and Netbook 2 12-27-2003 01:10 PM
ext2 home partition... no permission michedlp Linux - General 5 11-30-2003 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:44 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