LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-30-2005, 11:52 PM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
Can not write files to /home


Donno why, i am using mandriva 2006 RC2, i login as my own name, when i tried to copy files from flashmemory to my /home, it prevented me to do so,
i got to logout and login as Root, then it can be done.
why? due to settings? how to fix it?
 
Old 10-01-2005, 02:19 AM   #2
valerie_tux
Member
 
Registered: Aug 2003
Distribution: Debian
Posts: 150

Rep: Reputation: 15
While you are still root, change the ownership of your home folder to your username. Still are you sure that it was not the the flashdrive which was denied..that case happens quite often where only Root has full access to external memory devices.
 
Old 10-02-2005, 09:04 PM   #3
Slith(++1)
Member
 
Registered: Sep 2005
Posts: 36

Rep: Reputation: 15
Do you mean you cant write to /home or /home/'user_name' because its normal to not be able to write to /home.
 
Old 10-02-2005, 09:40 PM   #4
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
/home/yplim

yplim is my login name

i have files created by root and stored in /home/yplim

when i tried to edit the file as yplim login, can not do that
 
Old 10-03-2005, 12:04 AM   #5
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
Quote:
Originally posted by TigerLinux
/home/yplim

yplim is my login name

i have files created by root and stored in /home/yplim

when i tried to edit the file as yplim login, can not do that
This has happened to me before when I reinstalled/updated my Mandriva and NOT my /home directory. The way I fixed it was in the console as root:

chmod 777 /home/yplim -R
chown yplim /home/yplim -R

I believe that should give you read/write permissions to your /home/yplim directory.

Another way to try is to log in to KDE/GNOME:

username: root
<root password>
open konqueror
right-click /home/yplim
then change permissions and ownership from there.
 
Old 10-03-2005, 03:46 AM   #6
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 317

Rep: Reputation: 30
I believe this should be sufficient and would probably be a preferable way of doing it.

chmod 755 /home/yplim -R
chown yplim /home/yplim -R

This gives full permissions to the owner (yplim), but only give read execute priviledges to other users. I believe this is the standard for everything except for:

/home/'user name'/tmp

Which I think has... 700 permission? Not quite sure.
 
Old 10-03-2005, 06:06 PM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
chmod 755 /home/yplim -R
chown yplim /home/yplim -R

This gives full permissions to the owner (yplim), but only give read execute priviledges to other users. I believe this is the standard for everything except for:

/home/'user name'/tmp

Which I think has... 700 permission?
Its really a personal preference, if you want other people to be able to read any file in your home directory then have it 755. I think the default is to have the top level directory (ie. /home/yplim) as 751 (rwxr-x--x) and have all the directories and subdirectories with no access for others.
 
Old 10-04-2005, 08:14 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
What is the default group for 'yplim'?

If its' "yplim" too, then '775' is fine. If, on the other hand, it is something more general like "users", '755' is correct.

Some distros (scenario 1) follow the RH strategy of giving every user an unique group name, identical to the user name. For these, you allow full access to your files by adding other users to your personal group, ergo the '775'. Other distros (scenario 2) follow the SimplyMEPIS strategy of putting all users in a single group "users". For these, '755' is appropriate; & allowing individual additional users access to your files gets more complicated.

Finally, don't forget to change the group ownership on your files, not just the user:
Code:
chown yplim:yplim /home/yplim -R
or more generally:
Code:
chown yplim:<yplim's base group> ~yplim -R
Useful aside for new folk
  1. ~/
  2. $HOME/
  3. /home/<user>/
all mean the same thing -- 1 & 2 expand to 3.
 
Old 10-04-2005, 06:19 PM   #9
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
Some distros (scenario 1) follow the RH strategy of giving every user an unique group name, identical to the user name. For these, you allow full access to your files by adding other users to your personal group, ergo the '775'.
Actually in this case its irrelevant wether its 755 or 775 as it makes no difference. You'll find most distros following the RH strategy will have 022 or 027 as a umask and will default to 751 or 755 on the home dir.
 
  


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
can't write to home directory error bond82 Mandriva 5 06-06-2007 02:11 PM
Able to write files to MP3 player but no files written into actual device? olnex Linux - Hardware 0 11-11-2005 06:32 AM
Can't write to home dir. Mirari Linux - General 5 05-22-2005 02:42 PM
Can't write to my home dir Seiken Linux - Newbie 5 02-16-2005 08:42 AM
Could not write to my home directory comprookie2000 Linux - Newbie 19 05-11-2004 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:32 AM.

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