sudo chown nobody.nogroup should be sudo chown nobody:nogroup

Bug #1380024 reported by David
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
Fix Released
Peter Matulis
Fix Released
Peter Matulis

Bug Description

In the Server Guide here

and here

I believe the line

sudo chown nobody.nogroup /srv/samba/share/

should read

sudo chown nobody:nogroup /srv/samba/share/

according to

Revision history for this message
Doug Smythies (dsmythies) wrote :


Master file Reference: samba.xml line 197
<command>sudo chown nobody.nogroup /srv/samba/share/</command>

While we are at it, we should also fix master file lamp-applications.xml line144
<command>sudo chown -R www-data.www-data mywiki</command>

Changed in serverguide:
status: New → Confirmed
Revision history for this message
Doug Smythies (dsmythies) wrote :

By the way, using a "." instead of a colon actually does seems to work. Example:

doug@s15:~$ ls -l zzzxxx
-rw-rw-r-- 1 doug doug 62 Oct 11 07:53 zzzxxx
doug@s15:~$ sudo chown www-data.www-data zzzxxx
doug@s15:~$ ls -l zzzxxx
-rw-rw-r-- 1 www-data www-data 62 Oct 11 07:53 zzzxxx

Changed in serverguide:
importance: Undecided → Low
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

From "info chown":

"Some older scripts may still use ‘.’ in place of the ‘:’ separator. POSIX 1003.1-2001 (*note Standards conformance::) does not require support for that, but for backward compatibility GNU ‘chown’ supports ‘.’ so long as no ambiguity results. New scripts should avoid the use of ‘.’ because it is not portable, and because it has undesirable results if the entire OWNER‘.’GROUP happens to identify a user whose name contains ‘.’."

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.