[CLUE-Tech] samba file permissions

Mike Staver staver at fimble.com
Mon Aug 23 11:19:03 MDT 2004


I have a question - I'm trying to do something that has worked in the 
past (I thought) but isn't now.  I have a windows file server in the 
following location:

//butters/uploads      8883712   5619712   3264000  64% 
/srv/www/htdocs/hotline/uploads

I've mounted it in the place above... then, the permissions on what's in 
the folder are:

www2:/srv/www/htdocs/hotline/uploads # ls -alh
total 107K
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 .
drwxr-xr-x    5 root     root         3.1K 2004-08-23 10:43 ..
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 106
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 110
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 14
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 142
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 18
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 186
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 22
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 242
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 422
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 722
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 746
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 754
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 762
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 766
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 770
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 786
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 818
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 854
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 878
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 898
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 90
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 902
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 910
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 94
drwxr-xr-x    1 nobody   root         4.0K 2004-08-23 11:11 98

As you can see, the user nobody owns the uploads folder and all the 
subfolders.  I now want the user wwwrun (a Suse thing) to be the owner 
of all the files in the uploads folder.  I have tried:

www2:/srv/www/htdocs/hotline/uploads # chown wwwrun *
chown: changing ownership of `106': Operation not permitted
chown: changing ownership of `110': Operation not permitted
chown: changing ownership of `14': Operation not permitted
chown: changing ownership of `142': Operation not permitted
chown: changing ownership of `18': Operation not permitted
chown: changing ownership of `186': Operation not permitted
chown: changing ownership of `22': Operation not permitted
chown: changing ownership of `242': Operation not permitted
chown: changing ownership of `422': Operation not permitted
chown: changing ownership of `722': Operation not permitted
chown: changing ownership of `746': Operation not permitted
chown: changing ownership of `754': Operation not permitted
chown: changing ownership of `762': Operation not permitted
chown: changing ownership of `766': Operation not permitted
chown: changing ownership of `770': Operation not permitted
chown: changing ownership of `786': Operation not permitted
chown: changing ownership of `818': Operation not permitted
chown: changing ownership of `854': Operation not permitted
chown: changing ownership of `878': Operation not permitted
chown: changing ownership of `898': Operation not permitted
chown: changing ownership of `90': Operation not permitted
chown: changing ownership of `902': Operation not permitted
chown: changing ownership of `910': Operation not permitted
chown: changing ownership of `94': Operation not permitted
chown: changing ownership of `98': Operation not permitted

And to answer a few questions right off, Yes, I am root when trying this 
on the linux box and yes I did mount the share as the user 
Administrator, which is the network administrator of my windows network 
to try this.  I can't change the owner of the files from the windows 
machine because Windows obviously won't know who nobody or wwwrun are. 
Can somebody tell me how this can be changed?
-- 

                                 -Mike Staver
                                  staver at fimble.com
                                  mstaver at globaltaxnetwork.com



More information about the clue-tech mailing list