[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pureftpd-list
Subject:    [pure-ftpd] Re:Re: [pure-ftpd] how to create virtual using root account
From:       <j-wd () 163 ! com>
Date:       2011-11-25 5:10:28
Message-ID: fc40cfa.6382.133d921c306.Coremail.j-wd () 163 ! com
[Download RAW message or body]


I really need virtual user mapped to root, how? Change source code?
Doe's anybody know  anything about it?

At 2011-11-02 23:06:10,"zhendong xu" <perl5.xu@gmail.com> wrote:
>for using virtual users,you should create a dedicated user an group  like
>"ftpuser" "ftpgroup".
>
>then use command like this "  pure-pw useradd joe -u ftpuser -d
>/home/ftpusers/joe " to create virtual user accounts.
>
>and the virtual user can't  nither belong to root  nor wheel.
>
>2011/10/31 ramakanth varala <ramakanth.varala@gmail.com>
>
>> Thanks for the reply.
>>
>> I changed my user in my system to root.
>>
>> and did ./configure --with-puredb in pure-ftpd-1.0.32
>> make and make install
>>
>> when i try to do pure-pw useradd joe -d /var/ftp -u root
>>
>> it gives me error as below.
>>
>> You must give (non-root) uid and gid
>>
>> so , how to add user's using "root" .
>>
>> regards
>>
>>
>>
>> On Mon, Oct 31, 2011 at 1:59 PM, zhendong xu <perl5.xu@gmail.com> wrote:
>> > 1. you should config pure-ftp with this option:
>> >           --with-puredb
>> >    then you can create virtual users with this command
>> >            pure-pw useradd
>> >
>> > 2.abou how to use  virtual user  ,you should read this docs
>> >
>> >    http://download.pureftpd.org/pub/pure-ftpd/doc/README.Virtual-Users
>> >
>> >
>> > 2011/10/25 ramakanth varala <ramakanth.varala@gmail.com>
>> >
>> >> Thanks,
>> >>
>> >> for your comments , another info i need is.
>> >>
>> >> can't i create virtual users using a root user
>> >>
>> >> If yes which option i need to use while i do configure.
>> >>
>> >> My only intentention here is have "root" user  mounted file system in
>> >> the home directory of the user .
>> >>
>> >> Which i cannot use bcz this virtual user is being created by non-root
>> >> non root-gid user.
>> >>
>> >> regards
>> >> Rama Kanth
>> >>
>> >> On Fri, Oct 21, 2011 at 9:56 PM, Zdenek Styblik <stybla@turnovfree.net>
>> >> wrote:
>> >> > On 10/21/11 13:50, ramakanth varala wrote:
>> >> >> Hello all,
>> >> >>
>> >> >> Iam using pureftpd to give ftp service . Now i have one case which
>> >> >> iam trying to figure out the solution .
>> >> >>
>> >> >> I have more than one Virtual user for my PureFTPd.
>> >> >>
>> >> >> I would like to limit one particular user to Read and antoher one
>> >> >> to have Read and write permissions.
>> >> >>
>> >> >> do we have any configuration option for this .
>> >> >>
>> >> >> Or else can i just create the user by using different uid/gid who
>> >> >> have only read access .
>> >> >>
>> >> >> Iam not sure whether this can be possible
>> >> >>
>> >> >> Any help/directions in this would be highly appreciated.
>> >> >>
>> >> >> regards Rama Kanth
>> >> >
>> >> > Rama,
>> >> >
>> >> > I believe standard POSIX access control should do just fine.
>> >> > So, user1, member of group1, is going to have rwx to all directories
>> >> > in question, rw(x) to all files in question. All directories and files
>> >> > in question are going to be owned by user1:group1 and group1 is going
>> >> > to have rx for directories, r(x) for files in question. user2 which
>> >> > has read-only access is member of group1.
>> >> >
>> >> > Perhaps utilization of simple upload script will be required to set
>> >> > desired ACLs.
>> >> > Virtual UIDs/GIDs will have to be used; handles 'user1', 'user2',
>> >> > 'group1' will not work as they do not exist on the system! However,
>> >> > setting non-existing UID/GID is possible and works for pure-ftpd.
>> >> >
>> >> > Example: # chown 2000:2001 file.txt ; where 2000 maps to (virtual)
>> >> > user1, (virtual) group1.
>> >> >
>> >> > Best regards,
>> >> > Zdenek
>> >> >
>> >> > --
>> >> > Zdenek Styblik
>> >> > email: stybla@turnovfree.net
>> >> > jabber: stybla@jabber.turnovfree.net
>> >> >
>> >>
>> >
>>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic