Sponsored Content
Full Discussion: Add user with restiction
Operating Systems AIX Add user with restiction Post 302199208 by Yogesh Sawant on Monday 26th of May 2008 05:13:16 AM
Old 05-26-2008
Chroot jail should help you
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Add User and Password

hello i have some probelm in the Unix Sun system ....so anyone can u help me how to sovle the problem : 1.how to add the user name and password. 2.list out the command.. Thank You (1 Reply)
Discussion started by: alan thui
1 Replies

2. UNIX for Dummies Questions & Answers

add user from web

I am trying to figure out how to add a user from the web (w/ PHP or PERL): is it possible? (2 Replies)
Discussion started by: ryanroth
2 Replies

3. Solaris

how to add user

hey...I am new in solaris...so how can I add user on my sun solaris system I have root user I would like one more user similar to root...as I understand root is super user...how can I do that I know that there is useradd command but can anyone give me an example... thanks, cheers, (3 Replies)
Discussion started by: amon
3 Replies

4. UNIX for Dummies Questions & Answers

add user

hi ..m new to linux..i want to know d shell script to add new user to the system without using adduser command.. (1 Reply)
Discussion started by: jaini
1 Replies

5. UNIX for Advanced & Expert Users

Add User Problem

Hi all, I got a preconfigured Debian 4 (etch) box. When I add a user, it tells me it added and I can "su" as a new user but I can't login with it through SSH, SFTP, etc. Why? Thanks for your help. (30 Replies)
Discussion started by: mjdousti
30 Replies

6. UNIX for Dummies Questions & Answers

Add new User in Unix ?!

Hello Experts, Guide me how to add new users (user id , passwd) in unix/Linux with different privileges like --> 1> It can be accessible by telnet (or where i should check/change to give different privileges like telnet or ssh2 or FTP) 2> can run only 1 command / script (2 Replies)
Discussion started by: darshak
2 Replies

7. Homework & Coursework Questions

Help on Add User Scripts

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: for each user Create a account formatted as last name first initial. Example (southerm) Ensure no... (0 Replies)
Discussion started by: moosemd
0 Replies

8. UNIX for Dummies Questions & Answers

User Add and Rights

Dears, I want to add a user and give him rights only for a spesific folder and take the files via ftp. The user shouldn't see the other files above or belov his folder. lets say I have "user". my directories: /a /b/d /c when I connect to the system I want this "user" to connect... (3 Replies)
Discussion started by: hubatuwang
3 Replies

9. Red Hat

User add problem

I could not create the user name with the number infront of... useradd 8siva useradd: Invalid account name `8siva' (3 Replies)
Discussion started by: gsiva
3 Replies

10. Linux

Add a user with no password

I want to add a user like below in Linux. Please assist Below is the information from /etc/passwd file ---------- Post updated at 02:04 PM ---------- Previous update was at 10:05 AM ---------- Not sure why there is X in shadow file (6 Replies)
Discussion started by: prash358
6 Replies
CHROOT(2)						      BSD System Calls Manual							 CHROOT(2)

NAME
chroot -- change root directory SYNOPSIS
#include <unistd.h> int chroot(const char *dirname); DESCRIPTION
Dirname is the address of the pathname of a directory, terminated by an ASCII NUL. Chroot() causes dirname to become the root directory, that is, the starting point for path searches of pathnames beginning with '/'. In order for a directory to become the root directory a process must have execute (search) access for that directory. If the program is not currently running with an altered root directory, it should be noted that chroot() has no effect on the process's cur- rent directory. If the program is already running with an altered root directory, the process's current directory is changed to the same new root directory. This prevents the current directory from being further up the directory tree than the altered root directory. This call is restricted to the super-user. RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate an error. ERRORS
Chroot() will fail and the root directory will be unchanged if: [ENOTDIR] A component of the path name is not a directory. [ENAMETOOLONG] A component of a pathname exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters. [ENOENT] The named directory does not exist. [EACCES] Search permission is denied for any component of the path name. [ELOOP] Too many symbolic links were encountered in translating the pathname. [EFAULT] Path points outside the process's allocated address space. [EIO] An I/O error occurred while reading from or writing to the file system. SEE ALSO
chdir(2) WARNINGS
There are ways for a root process to escape from the chroot jail. HISTORY
The chroot() function call appeared in 4.2BSD. 4.2 Berkeley Distribution June 4, 1993 4.2 Berkeley Distribution
All times are GMT -4. The time now is 05:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy