← Back to team overview

sslug-teknik team mailing list archive

Re: Ejerskifte ved kopiering

 

Jon Bendtsen <bendtsen@xxxxxxx> writes:

> Så får de ejer eller gruppe som der er på biblioteket
> det kan du ændre med chown, chgrp, osv.

Har du afprøvet det? Her virker det kun med gruppen:

brother@localhost:~$ cd /tmp
brother@localhost:/tmp$ ls -ld games
drwsrwsrwx    2 games    games          48 Mar 15 16:37 games
brother@localhost:/tmp$ cd games
brother@localhost:/tmp/games$ touch foobar
brother@localhost:/tmp/games$ ls -la
total 2
drwsrwsrwx    2 games    games          72 Mar 15 16:38 .
drwxrwxrwt   17 root     root         1064 Mar 15 16:37 ..
-rw-r--r--    1 brother  games           0 Mar 15 16:38 foobar
brother@localhost:/tmp/games$ groups
brother audio
brother@localhost:/tmp/games$ 

-- 
 Peter Makholm     |                                 Wisdom has two parts:
 peter@xxxxxxxxxxx |                           1) having a lot to say, and
 http://hacking.dk |                                      2) not saying it


Follow ups

References