[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] mount problems
On Thu, Dec 04, 2003 at 03:48:56PM -0000, Chris Johnson wrote:
>
> I tried this and it came up with
> ls -la
>
> drwxr-xr-x root root linux
>
> Then
> chown -R cjohnson /home/cjohnson/server1/linux
> chown : changing ownership of '/home/cjohnson/server1/linux': Operation not
> permitted
chown won't work against an smb mounted directory, because smb does not
support it. You need to tell mount what user permissions to give when
you mount the directory.
Start off, from a command line type
id
This will give you your uid and gid, ignore all the others, just make a
note of your user id and group id.
Example, mine is 1000. Take your previous mount command
mount -t smbfs -o username=myusername,password=mypassword //server1/linux /home/cjohnson/server1/linux
If I wanted to do this, I would type
mount -t smbfs -o username=myusername,password=mypassword,uid=1000,gid=1000 //server1/linux /home/cjohnson/server1/linux
Change the 1000 to whatever your uid & gid is. This will mount the share
with you as the owner. Your ls -la will give
drwxr-xr-x cjohnson cjohnson linux
And you'll be able to write to it.
chown will still not work, neither will chmod.
--
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.