Find the answer to your Linux question:
Results 1 to 7 of 7
Hi, im new to red hat How can i create folders in linux? so far i have created the folders i need using mkdir /home/computer now what i need to ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    8

    creating folder

    Hi,

    im new to red hat

    How can i create folders in linux?

    so far i have created the folders i need using mkdir /home/computer

    now what i need to do is create five more folders but each folder sill have their own username and password

    how can i do this?

  2. #2
    Just Joined!
    Join Date
    Dec 2007
    Posts
    14
    If you are creating accounts for 5 users you need to create the user accounts. When the users log on they will have home folders.

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    8
    what i need it that when i ssh to that webserver and the user logins logins he will be directed to that folder, its something like a ftp acc im trying to do ?

    i think this is what i want
    Code:
    su -
    chown -R root:root <folder>

    but i dont get the syntax help

    for example when someone ftp to that server using a username it should directed specific folder

  4. #4
    Just Joined!
    Join Date
    Jul 2010
    Location
    Kolkata
    Posts
    3
    I suppose, as ImCrunchy said, you have to create 5 different user accounts with different usernames and passwords.

    You can use command 'useradd' for creating account for new user and use 'passwd username' for setting the password for new user.

    For 'useradd' take help from man pages.

    Thanks

  5. #5
    Just Joined!
    Join Date
    Jul 2010
    Posts
    8
    ok i managed to create the folder and automatically move them when connected to ftp to that folder, its password protected.

    one more thing this user can move back, like for example if his folder is /home/computer he can click the .. and go to /home. he can see the names of the folder in home but cant open the directory

    i want that he cannot move out of his folder

    pls help me ....

  6. #6
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    What ftp server are you using? The method varies with different servers. For vsftpd, put
    chroot_list_enable=yes
    in /etc/vsftpd/vsftpd.conf and create a file /etc/vsftpd/chroot_list with the users to be restricted, one per line. Restart the vsftpd service and you should be good to go.

  7. #7
    Just Joined!
    Join Date
    Apr 2010
    Posts
    69
    Also, you might have a look at the "ChrootDirectory" configuration option in sshd_config that supports chrooting users in an ssh session. The best way to use it is for sftp and for specific groups/users. It is available in OpenSSH 4.8p1 or greater, or in earlier versions patched to support it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...