Group permissions not working correctly in Gutsy Gibbon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
linux-source-2.6.22 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
group permissions not working quite right.
To reproduce this problem is fairly simple. Create a group "mygroup" and add your user to that group. Then perform:
$ touch specialfile
$ sudo chown root:mygroup specialfile
$ sudo chmod g+rwxs specialfile
$ ls -l specialfile
-rw-rwsr-- 1 root cedega 0 2007-11-15 10:56 specialfile
Now we can use python to show the issue:
$ python
Python 2.4.3 (#2, Oct 6 2006, 07:52:30)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> fp = file( "specialfile", "w+" )
>>>
When performing the fp = line I receive the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 1] Operation not permitted: 'specialfile'
Using older versions of Ubuntu does not hit this exception and we have not had any reports of problems with other distributions.
Cheers
I've tried what you suggested and have the same error
I added the user to the mygroup group by using the System- >Administration ->Users and Groups menu
I have however noticed that the id command does not list mygroup as one of the groups I am part of
and that a adduser command just after that reports that I'm already in the group
koen@koen- desktop: ~$ id 4(adm), 20(dialout) ,24(cdrom) ,25(floppy) ,29(audio) ,30(dip) ,44(video) ,46(plugdev) ,104(scanner) ,108(lpadmin) ,110(admin) ,115(netdev) ,117(powerdev) ,1000(koen) desktop: ~$ sudo adduser koen mygroup
uid=1000(koen) gid=1000(koen) groups=
koen@koen-
The user `koen' is already a member of `mygroup'.
Koen