Results 1 to 6 of 6

Thread: How to set up virtual Solaris system

  1. #1
    Join Date
    Feb 2010
    Posts
    488

    How to set up virtual Solaris system

    Hi all,

    I am unwilling to allow users to watch or to carry out certain files, then i can use a virtual system that allows users to see a specific file, or create another with the real contents of the file a different file.So i want to know that how can i set up virtual Solaris system. Please advice. Thanks in advance.

  2. #2
    Dr. V Guest

    How to set up virtual Solaris system

    In fact, the so-called "virtual system", mainly the use of chroot (Change Root) to achieve, that is to change the location of the root directory, causing the system corresponds to a new system settings. To achieve this purpose, can be broadly divided into two methods, namely, amending the code, while the other is to use the command system itself to achieve. I do not intend to modify the code detailed description of the relevant part of how to do, simply, most of the major programs is the use of chroot () the C function to change the root directory of the location, where more trouble is that we may have to modify the inetd program, or other network services program. Check and reply.

  3. #3
    Join Date
    May 2008
    Posts
    2,680

    How to set up virtual Solaris system

    The system in the / var, / usr, / etc, / dev, / devices pressed into system.tar. Check the command -
    Code:
    tar-xf / system.tar / vs
    The information in this file will be system.tar unlock on / vs directory.
    The above two lines will be able to command the system files to "/ vs" directory to go, this time when you issued a "chroot / vs / usr / bin / sh" command, it will be similar to the original system environment. In such an environment, the user does not end the current shell (chroot obtained after the shell) can not by any instructions back to the original systems. But in fact you do not need all the system files to the "virtual system", so long as the required files can be. As to what is required to file depends on what services you have installed. Listed under in the "/ vs" in the creation of FTP's "virtual system" approach. Check and reply.

  4. #4
    Join Date
    Nov 2005
    Posts
    3,026

    How to set up virtual Solaris system

    To create a "virtual system" in the "/ etc" directory, in order to place the password and configuration files. Check the setting:
    Code:
    mkdir / vs / etc
    Code:
    Set "virtual system" in the "/ etc / inetd.conf" file.
    echo "ftp stream tcp nowait root / usr / sbin / in.ftpd
    in.ftpd "> / vs / etc / inetd.conf
    Set "virtual system" in the "/ etc / passwd" file.
    echo "root: x: 0:1: Super-User: /: / usr / bin / tcsh"> / vs / etc / passwd
    echo "ftp:x:60:60:Anonymous Ftp: /: / dev / null">> / vs / etc / passwd
    Set "virtual system" in the "/ etc / shadow" file.
    echo "root: NP: 6445 ::::::"> / vs / etc / shadow
    echo "ftp:NP:6445 ::::::">> / vs / etc / shadow
    Check and reply.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,295

    Re: How to set up virtual Solaris system

    To create a "virtual system" in the "/ var" directory in order to place the system programs and libraries. check the settings for this:
    Code:
    mkdir / vs / usr
    mkdir / vs / usr / bin
    mkdir / vs / usr / sbin
    mkdir / vs / usr / lib
    From the "/ usr / lib" copy the following file to "/ vs / usr / lib"
    HTML Code:
    ld.so.1
    libauth.so.1
    libbsm.so.1
    libc.so.1
    libcmd.so.1
    libcrypt_i.so.1
    libdl.so.1
    libgen.so.1
    libmp.so.1
    libmp.so.2
    libnsl.so.1
    libsocket.so.1
    nss_files.so.1
    HTML Code:
    From the "/ usr / bin" copy the following file to "/ vs / usr / bin"
    # ls
    From the "/ usr / sbin" copy the following file to "/ vs / usr / sbin"
    # in.ftpd (FTP server program)
    # inetd (Internet Super Daemon)
    # "virtual system" in the "/ dev" and "/ devices" directory
    As "/ dev", "/ devices" of the tar file.
    tar-cf / dev.tar / dev / devices
    Solution to the tar file "/ vs" directory.
    tar-xf / dev.tar / vs
    Remove the tar file
    rm / dev.tar
    Then you need to start Service.
    HTML Code:
    chroot / vs / usr / sbin / inetd-s
    This step should be noted that whether the closure of the original system inetd.conf for ftp option, otherwise it is impossible to start normally.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,522

    How to set up virtual Solaris system

    FTP services, if vulnerabilities could enable an intruder to obtain root privileges through the holes, this time anonymous ftp to chroot may not be executed, if no implementation of the chroot, then the entire system is exposed to intruders eyes, but if you do a virtual system, will be mandatory for users to connect when the virtual system, even if an intruder to obtain root privileges through the holes will also be restricted to a virtual system, will be difficult to upset the system, so system damage can be reduced. All the best.

Similar Threads

  1. System for building a Virtual Lab
    By kumaraseem in forum Hardware Peripherals
    Replies: 2
    Last Post: 20-06-2010, 10:57 AM
  2. Virtual PC Causes System Lockup
    By Christia in forum Operating Systems
    Replies: 5
    Last Post: 05-04-2010, 05:54 PM
  3. Solaris system startup and shutdown
    By Edwards in forum Operating Systems
    Replies: 5
    Last Post: 24-03-2010, 12:58 AM
  4. returnil virtual system
    By Astro121 in forum Networking & Security
    Replies: 3
    Last Post: 11-02-2009, 11:34 PM
  5. migrate Hyper-V virtual machine to virtual server/virtual PC 2007
    By Larry Scott in forum Windows Server Help
    Replies: 1
    Last Post: 18-03-2008, 03:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,093,323.62646 seconds with 16 queries