Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2002 16:26:51 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        Tim DeBoer <deboert@cletus.cornhusker.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: User permissions problem
Message-ID:  <20020118162301.J99262-100000@catalyst.sasknow.net>
In-Reply-To: <Pine.BSF.4.21.0201181556490.92003-100000@cletus.cornhusker.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim DeBoer wrote to questions@FreeBSD.ORG:

> Hi folks,

> I've got a permissions problem that's driving me insane. Basically,
> everytime I download something as a user, I get an error message
> saying "could not change permissions for /home/user/foo.bar"

Well, the obvious question would be, what is the output of

ls -ld /home/user

For "user" to create and modify files, they should really have
ownership of the directory, and the permissions should probably be set
to -rwxr-xr-x to allow others to read and search the directory (chmod
0755), or -rwx------, to allow only "user" (and root) to access the
directory (chmod 0700).

If user doesn't own the directory, chown user /home/user ought to do
the trick.

Useful documentation:
man chown
man chmod
man group


> It Happens as both as my primary user, and as my "test" account, but
> not as root, since root is root I guess.

Most (not all) operations as root ignore ownership, and file and
directory permissions, so root can do just about anything.


> Anyway, how do I fix this?
>
> Thanks!
> --
>
> Tim DeBoer
> http://www.freebsd-geek.com
>
> "When you find yourself in the company of a Halfling and an ill-tempered
> Dragon, remember, you do not have to outrun the Dragon...
> ...you just have to outrun the Halfling."
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>

-- 
  Ryan Thompson <ryan@sasknow.com>
  Network Administrator, Accounts

  SaskNow Technologies - http://www.sasknow.com
  #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2

        Tel: 306-664-3600   Fax: 306-664-1161   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020118162301.J99262-100000>