can't find info to reset /home permissions right so I can log in (hardy), can it be fixed in live cd?

Asked by dragonfly

I just installed hardy with /home on another drive/partition.
After trying to copy files to a data partition and /home as well and having read write permissions on those restrained, I changed the owner/group/others permissions in gksudo nautilus. I unfortunately didn't bkup or make notes as I was rushing to solve a boot problem, and I can't remember what is the default. I could re-log once with an error ("$HOME/.dmrc file is being ignored) "but then I made /home un-logable. If my username is in fact the appropriate owner etc... is this possible at all via this live cd or do I have to log into a terminal and type in the commands. If so I need clear instructions as I am confused by the varying info I found (in terminal ... chmod 644...) but nothing on the defaults set for home (when just installed)!

  right now in nautilus, as live / I will try:

owner: 1000 (user ID) - create and delete files
group: users - create and delete files
others: - acces files

I have a feeling that I still have something wrong so help pls!

Note: what permission changes must always be avoided for the /home or another ext3 /data partition? I wanted to be able to move and create files freely in these 2 partitions...

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Theodotos Andreou (theodotos) said :
#1

Use the alternate cd, choose rescue cd option and change permissions on the command line

Revision history for this message
dragonfly (streams0dragonflies) said :
#2

ok I will use the command line but are the appropriate steps included on the cd?

Also for the future reference

for /home
 what is the right: owner: is it my username? create and delete?
                          group: users or root? create and delete?
                          others: access files only?

and if I don't want others to see my home files can it be left -----

I'm tired of mucking around and making things worse!

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#3

As you have found out certain folder and files require specific permissions. I would recommend that all ownership and permission changes be performed through the command line rather than root nautilus. By using the command line there is a record of all changes, hence all changes can be undone. Be very careful in regard to making changes recursively.

To answer your question I will quote this bug report
https://bugs.launchpad.net/ubuntu/+bug/136743

flaccid wrote on 2008-08-11

Something like this as default:

~ should be 750
~/Public should be 755
~/Private should be the encrypted folder (optional)

(all owed by `whoami`)

I wouldn't want to see any quirks instead of secure default permission on ~

Can you help with this problem?

Provide an answer of your own, or ask dragonfly for more information if necessary.

To post a message you must log in.