Re: Copying to another user's directory



lambert54@xxxxxxx writes:
> I am still learning permissions in AIX but was wondering why other
> users cannot copy to my special directory I set up to be public. I set
> all the permissions from my root to this public directory to be 777.
> Other users can read from there, but cannot write to it. Can someone
> explain this behaviour to me?

Bad idea. Assuming that by "my root" you mean your home directory,
you're allowing any user to remove or modify any of your files in your
home directory.

If you want to allow other users to write into a directory under your
home directory, you can set the permissions for that directory *only*
to 777; everything above it, up to your home directory, can be 755.
(You can be more restrictive than that if you don't want to allow
other users to be able to list the contents of some of your
directories.)

As for why it's not working, I don't know. Assuming the public
directory is $HOME/foo/bar/pub, try showing is the output of the
following commands:

ls -ld $HOME
ls -ld $HOME/foo
ls -ld $HOME/foo/bar
ls -ld $HOME/foo/bar/pub

And explain *exactly* what you mean by "cannot write to it" (i.e.,
show us the command and the error message it produces).

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.



Relevant Pages

  • Re: Help with sudoers and wheel - "Old Guy" or anyone?
    ... (I am root on my home systems, and have "root" user accounts at work, ... Notice - no permissions for normal users to run. ... members of the 'wheel' group could run those commands. ... >Use halt, reboot, shutdown, mount, and tcpdump commands. ...
    (comp.os.linux)
  • Re: Controlling read access
    ... of my home directory. ... Because of the way UNIX permissions work, if root ... This completely revises what I thought I knew about permissions. ... I skimmed through the chflags section of "Absolute FreeBSD" on my first read through... ...
    (freebsd-questions)
  • Re: File Browser with ROOT permissions
    ... By the way, you can use 'sudo' to open your GUI file browser, with ROOT ... > How do you open up a file browser with root permissions? ... > those are valid commands. ...
    (Ubuntu)
  • Re: Program runs for "root", not for regular user
    ... > Try starting it as both your normal user and root (or another test user ... setting the permissions to "a+w" did solve the problem (yes I am ... aware that this opens up my home directory to other users). ... get a permissions error when komodo tries to write the lock file. ...
    (comp.os.linux.misc)
  • Re: The Gimp
    ... If I run as root, ... saved in root's home directory. ... 544 permissions or something. ...
    (freebsd-questions)