Changing permissions

Changing permissions

Post by repli.. » Wed, 21 Jun 1995 04:00:00



How do you change the owndership of a directory.  I have a
directory created with my first account but my other account cannot
write into it.  I don't want to use chmod to change this.  Is there
a way to give the ownership to a different user?

Please reply via e-mail
thx

 
 
 

Changing permissions

Post by Mark Fear » Thu, 22 Jun 1995 04:00:00


>How do you change the owndership of a directory.  I have a
>directory created with my first account but my other account cannot
>write into it.  I don't want to use chmod to change this.  Is there
>a way to give the ownership to a different user?

>Please reply via e-mail
>thx


 Hello. Either you and the other user (your other account in this case)
both
have to be in the same group, or root must make the copy.
-


 
 
 

Changing permissions

Post by Sally Woolric » Thu, 22 Jun 1995 04:00:00




> >How do you change the owndership of a directory.  I have a
> >directory created with my first account but my other account cannot
> >write into it.  I don't want to use chmod to change this.  Is there
> >a way to give the ownership to a different user?

> >Please reply via e-mail
> >thx

>  Hello. Either you and the other user (your other account in this case)
> both
> have to be in the same group, or root must make the copy.

The directory must have group write permissions (775) to allow the first
solution above to work.

--
============================================================================
Sally Woolrich                    |          This mail contains my personal

============================================================================

 
 
 

Changing permissions

Post by Tad McClell » Thu, 22 Jun 1995 04:00:00


: How do you change the owndership of a directory.  I have a
: directory created with my first account but my other account cannot
: write into it.  I don't want to use chmod to change this.  Is there
: a way to give the ownership to a different user?

I resort to the following rather than tug on root's sleeve:

su second
cp -r subject_dir temp_subject_dir
su first
rm -r subject_dir
su second
mv temp_subject_dir subject_dir

you of course still need read and execute permission on subject_dir...

--

---------------------------------------------------------------------
| Tad McClellan,      Logistics Specialist (IETMs and SGML guy)
|                     Lockheed Martin Tactical Aircraft Systems
|                     voice: (817) 763-6314

---------------------------------------------------------------------
|
| ... Because I command the sheriff of the county to lead you away to
| some remote spot, swing you by the neck from a knotting bough of
| some sturdy oak, and let you hang until dead.
|
|    And then, Jose Manuel Miguel Xaviar Gonzales, I further command such
| officer retire quickly from your dangling corpse, that vultures may
| descend from the heavens upon your * body until nothing shall
| remain but bare, bleached bones of a cold*ed, *thirsty,
| throatcutting, *ing Son of a *.
|
|                       Judge Roy Bean (the* Judge)
---------------------------------------------------------------------

 
 
 

1. tar changing permissions on /tmp?

I ran into something that surprised me, maybe its common knowledge to
some but this one caught me off guard.

On one of my systems,  a lot of processes started failing because they
couldnt write to /tmp.
Checking the permissions, it was indeed incorrect.  The sticky bit was
not set and the perms were dr-xr-xr-x

After scratching my head a bit trying to figure out how this got
changed, I recalled that not very long before this I untarred a file
into /tmp.  Based on that suspicion, I created a new directory in /tmp
(so I wouldnt break things again), made the perms. the same as tmp
(with sticky bit) moved the suspect tar file there and untarred.

Sure enough, once the tar commend finished, it changed the permissions
back to dr-xr-xr-x

I am sure tar is behaving the way it is supposed to behave but I have
never run into this before, and as you can see changing the permissions
on /tmp can break a *lot* of things...any ideas what I need to watch
out for so this doesnt happen again?

2. HELP!!!!!!!

3. Mandrake 8.2 changing permissions automatically

4. IP address of a name server & NetCom Flame

5. biZaRRe: X changes pErmisSiOns of /dev/audio*. ?????????

6. RedHat installation & AccelGraphics Permedia ...

7. Change permission according to file type??

8. mount Win95 FAT32 partition?

9. login changes permissions on /dev/console?

10. 2.0.8: Linus, Change Permissions!

11. /dev/fb changes permissions

12. change permissions recursively

13. accidentally changed permissions of /var - *nothing* works!