TIP: Click on subject to list as thread! ANSI
echo: unix
to: Angus Mcleod
from: Jasen Betts
date: 2004-08-23 09:08:06
subject: This is why FreeBSD...

Hello Angus.

13 Aug 04 13:28, you wrote to all:

 AM>     $ echo "Hello world" > hello.text
 AM>     $ ls -l hello.txt
 AM>     -rw-r--r--  1 amcleod  anjo  6 Aug 13 15:27 hello.text
 AM>     chown freddy hello.text
 AM>     chown: hello.text: Operation not permitted
 AM>     $ man chown

 AM>     CHOWN(8)            FreeBSD System Manager's Manual
 AM> CHOWN(8)

 AM>     NAME
 AM>         chown - change file owner and group
 AM>     .   .   .
 AM>     The ownership of a file may only be altered by a super-user for
 AM> obvious
 AM>     security reasons.

 AM> What rubbish!

have you heard of the setuid bit?  What it means is that if you can
"give" files to others you (and others) can also assume their
identity.

 AM>   So the OWNER of the file is not allowed to give it to
 AM> someone else?  WTF is write permissions for if not to decide who can
 AM> modify the file, such as changing ownership?

If you want to share the data with another you can make it available to
them by using the group or global read-write permissions, mail(1)-ing it to
them, or sharing your password with them etc. (not reccomended).

The system administrator can create small groups for file-sharing purposes
so that users working on "blarg" can be in the "blarg-dev" group
and users working on "foo" can be in "foo-dev", any
individual user can be a member of an unlimited number of groups.

The umask and newgrp commands effect the permissions and group-id that new
files are given.

Jasen

--- GoldED+/LNX 1.1.4.7
* Origin: (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.