[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gNewSense-users] Request for file permission help.
From: |
Chris Andrew |
Subject: |
Re: [gNewSense-users] Request for file permission help. |
Date: |
Wed, 5 Sep 2007 19:55:24 +0100 |
Phew!
As root:
chown -R chris /home/chris
chgrp -R chris /home/chris
chmod -R 0700 /home/chris
No errors now, I'm sure that's what I did in the first place. Maybe not!
Thanks for your help, especially Kevin.
Cheers,
Chris.
On 05/09/07, Kevin Dean <address@hidden> wrote:
> That's exactly why I don't use numebrs. :P They're uncertain. :)
>
> The way I do it:
>
> chmod u+rw /path/to/file; chmod og-rwx /path/to/files
>
> u = user
> g = group
> o = other
>
> + adds permission
> - removes permissions
>
> r = read
> w = write
> x= execute
>
> Hope that helped. :)
>
> On 9/5/07, Chris Andrew <address@hidden> wrote:
> > This looks promising:
> >
> > To set a directory read/write/search by owner, unreadable by others:
> >
> > chmod 0700
> >
> >
> > Any thoughts?
> >
> > Cheers,
> >
> > Chris.
> >
> > On 05/09/07, Chris Andrew <address@hidden> wrote:
> > > Dohh. Now I can't open a new X-session, so am worried about
> > > logging-out of present one. I'll do some googling.
> > >
> > > On 05/09/07, Chris Andrew <address@hidden> wrote:
> > > > It may have worked, then. I'll try to see what happens when I open a
> > > > new X session. Will let you know.
> > > >
> > > > On 05/09/07, Kevin Dean <address@hidden> wrote:
> > > > > that command will, essentially do to your home directory what you
> > > > > commands did... The chrisLchris simply consolidates the chown/chgroup
> > > > > commands, and chmod u+rw is equal to chmodding 6XX... I prefer to use
> > > > > "guo" notation instead of archaic numbers...
> > > > >
> > > > > The ONLY functional difference is that this will affect only files
> > > > > that start with a .
> > > > >
> > > > > On 9/5/07, Chris Andrew <address@hidden> wrote:
> > > > > > Kevin,
> > > > > >
> > > > > > I get a few errors to do with the other user in my /home. I don't
> > > > > > want to do this as root, in case I screw that user up. Are those
> > > > > > commands definately correct?
> > > > > >
> > > > > > Cheers,
> > > > > >
> > > > > > Chris.
> > > > > >
> > > > > > On 05/09/07, Chris Andrew <address@hidden> wrote:
> > > > > > > Kevin,
> > > > > > >
> > > > > > > Thanks for your comments. Before I apply your advice, does anyone
> > > > > > > agree or disagree. Just trying to minimize any damage :-).
> > > > > > >
> > > > > > > Cheers,
> > > > > > >
> > > > > > > Chris.
> > > > > > >
> > > > > > > On 05/09/07, Kevin Dean <address@hidden> wrote:
> > > > > > > > Personally, as easy as it supposedly makes migration, I've
> > > > > > > > found from
> > > > > > > > experience that migrating /home across distros, or even
> > > > > > > > installs of
> > > > > > > > the same distro, almost always fails. ;(
> > > > > > > >
> > > > > > > > I've begun tarballing my files and moving them; permission
> > > > > > > > preserved
> > > > > > > > and system settings (anything not pretaining ot my "theme", for
> > > > > > > > instance) set by the distro to avoid conflicts.
> > > > > > > >
> > > > > > > > As to your specific problem, I'm not sure... It appears as if
> > > > > > > > you're
> > > > > > > > covering your bases, but perhaps the chmod isn't affecting .*
> > > > > > > > files?
> > > > > > > >
> > > > > > > > cd /home; chown -R chris:chris /home/chris/.*; chmod -R u+rw
> > > > > > > > /home/chris/.*; ?
> > > > > > > >
> > > > > > > > On 9/5/07, Chris Andrew <address@hidden> wrote:
> > > > > > > > > Hi, guys.
> > > > > > > > >
> > > > > > > > > NOT PFV FOR A CHANGE!
> > > > > > > > >
> > > > > > > > > I rebuilt my main PC, today. Feisty has gone and gNS is up
> > > > > > > > > and
> > > > > > > > > running. I have copied all my old data to the newly
> > > > > > > > > carved-up drives,
> > > > > > > > > but am getting some permissions problems. I have done this
> > > > > > > > > before,
> > > > > > > > > but can't remember how I solved it.
> > > > > > > > >
> > > > > > > > > Basically, the problem is with logging-in and the permissions
> > > > > > > > > on /home
> > > > > > > > > directories and files.
> > > > > > > > >
> > > > > > > > > I have done:
> > > > > > > > >
> > > > > > > > > chown -R chris 770 (I am user chris)
> > > > > > > > > chgrp -R chris 770
> > > > > > > > > chmod -R /home/chris
> > > > > > > > >
> > > > > > > > > When I log out and log back in, I get a Gnome message telling
> > > > > > > > > me that
> > > > > > > > > my $HOME/.dmrc has the wrong permissions and should be 644.
> > > > > > > > > I have
> > > > > > > > > changed this, but still the same error.
> > > > > > > > >
> > > > > > > > > Basically, I don't want my files to be world readable (read
> > > > > > > > > as home
> > > > > > > > > readable!). All users should own the files in their $HOME,
> > > > > > > > > and
> > > > > > > > > finally, I need to get rid of the Gnome message.
> > > > > > > > >
> > > > > > > > > Can anyone put me straight?
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > >
> > > > > > > > > Chris.
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Reasons why you may want to try GNU/Linux:
> > > > > > > > >
> > > > > > > > > http://www.getgnulinux.org/
> > > > > > > > >
> > > > > > > > > A great GNU/Linux distro:
> > > > > > > > >
> > > > > > > > > http://wiki.gnewsense.org/
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > _______________________________________________
> > > > > > > > > gNewSense-users mailing list
> > > > > > > > > address@hidden
> > > > > > > > > http://lists.nongnu.org/mailman/listinfo/gnewsense-users
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Reasons why you may want to try GNU/Linux:
> > > > > > >
> > > > > > > http://www.getgnulinux.org/
> > > > > > >
> > > > > > > A great GNU/Linux distro:
> > > > > > >
> > > > > > > http://wiki.gnewsense.org/
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Reasons why you may want to try GNU/Linux:
> > > > > >
> > > > > > http://www.getgnulinux.org/
> > > > > >
> > > > > > A great GNU/Linux distro:
> > > > > >
> > > > > > http://wiki.gnewsense.org/
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > gNewSense-users mailing list
> > > > > > address@hidden
> > > > > > http://lists.nongnu.org/mailman/listinfo/gnewsense-users
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Reasons why you may want to try GNU/Linux:
> > > >
> > > > http://www.getgnulinux.org/
> > > >
> > > > A great GNU/Linux distro:
> > > >
> > > > http://wiki.gnewsense.org/
> > > >
> > >
> > >
> > > --
> > > Reasons why you may want to try GNU/Linux:
> > >
> > > http://www.getgnulinux.org/
> > >
> > > A great GNU/Linux distro:
> > >
> > > http://wiki.gnewsense.org/
> > >
> >
> >
> > --
> > Reasons why you may want to try GNU/Linux:
> >
> > http://www.getgnulinux.org/
> >
> > A great GNU/Linux distro:
> >
> > http://wiki.gnewsense.org/
> >
> >
> > _______________________________________________
> > gNewSense-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/gnewsense-users
> >
>
--
Reasons why you may want to try GNU/Linux:
http://www.getgnulinux.org/
A great GNU/Linux distro:
http://wiki.gnewsense.org/
- [gNewSense-users] Request for file permission help., Chris Andrew, 2007/09/05
- Re: [gNewSense-users] Request for file permission help., Kevin Dean, 2007/09/05
- Re: [gNewSense-users] Request for file permission help., Chris Andrew, 2007/09/05
- Re: [gNewSense-users] Request for file permission help., Chris Andrew, 2007/09/05
- Re: [gNewSense-users] Request for file permission help., Kevin Dean, 2007/09/05
- Message not available
- Re: [gNewSense-users] Request for file permission help., Chris Andrew, 2007/09/05
- Re: [gNewSense-users] Request for file permission help., Chris Andrew, 2007/09/05
- Re: [gNewSense-users] Request for file permission help., Kevin Dean, 2007/09/05
- Re: [gNewSense-users] Request for file permission help.,
Chris Andrew <=
- Re: [gNewSense-users] Request for file permission help., Karl Goetz, 2007/09/06