Also, to do this from the 'hosting server' (because it's harder than
hell to script this stuff from the command line if you have to 'bevs -r
vsname' first) you can use 'chown
--reference=/directory/reference_fileordir /directory/filenameordir/'
syntax to set the ownership based on another file or directory's
permissions.  You have to do this as root, of course.

Dan

-----Original Message-----
From: Tim Sellar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 10:07 AM
To: [EMAIL PROTECTED]
Subject: RE: Changing ownership in a virtual server


Within the hosting server there is no concept of a user admin - each
admin
user only really exists with that name inside each virtual server. Also
admin user cannot be allowed to manipulate files which are owned by
root.

You should bevs into the virtual server as root:

'bevs -r vsone'

And then, because the admin user exists within the vs and you are root,
you
can execute chown admin.admin...

Tim

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ana Paula
> Sent: 31 October 2001 17:23
> To: Freevsd-Support
> Subject: Changing ownership in a virtual server
>
>
>
> I need  to change the ownership of a directory inside of a virtual
> server.
> Now it is as root, and I need to move for admin.
>
> If I try logged like admin, I get this error:
>
> [admin@appds2 root]$ chown admin.admin /etc
> chown: /etc: Numerical result out of range
> [admin@appds2 root]$
>
> If I try from hosting server, I get:
>
> [root@testserver /root]# chown admin.admin /home/vsd/vs/appds2/etc
> chown: admin.admin: invalid user
>
> So, I add the user admin in hosting server (useradd admin) and I got
to
> give the command, but now, the etc directory it is like this:
>
> drwxr-xr-x   14 501      501          4096 Oct 31 05:23 etc
>
> And not:
>
> drwxr-xr-x   14 admin      admin          4096 Oct 31 05:23 etc
>
> With certainty I made everything wrong.
> How can I make that with success?
>
> Thanks
> --
> Ana Paula <[EMAIL PROTECTED]>
>
> ------------------------- The freeVSD Support List
> --------------------------
> Subscribe:
mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
> Unsubscribe:
> mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
> Archives:    http://freevsd.org/support/mail-archives/freevsd-support
> ------------------------------------------------------------------
> -----------

------------------------- The freeVSD Support List
--------------------------
Subscribe:
mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe:
mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
------------------------------------------------------------------------
-----
------------------------- The freeVSD Support List --------------------------
Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
-----------------------------------------------------------------------------

Reply via email to