10 More Discussions You Might Find Interesting
1. Solaris
Hello,
I've just started using a Solaris machine with SunOS 5.10.
After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init).
... (2 Replies)
Discussion started by: egyassun
2 Replies
2. UNIX for Advanced & Expert Users
Hello Folks,
Of course i came here for your favour :)
How to set a defalult home directory for sFTP login ( at present users land in to their home directrory) when they connect from specific server.
When server(A) sFTP's to Linux server(B) they land to thier home directory.
I want... (5 Replies)
Discussion started by: Thala
5 Replies
3. Shell Programming and Scripting
hi ,
:wall:
I've in directory home user 3 file with blank space in name file, I would like erase the all character that no have alphanum more dot in namefile from home root , below the script.
If I execute the shell script from directory where stay it's execute well done.But I would like... (1 Reply)
Discussion started by: giankan
1 Replies
4. UNIX for Dummies Questions & Answers
At work I have two sets of systems, my Primary network and Secondary network. Each consists of 4 servers, 3 of them for doing work (Idaho, Omaha, Juno) and hosting the processes we work on and 1 holds all the home directories (Sword). So Idaho, Omaha and Juno use Sword for home directories (user... (7 Replies)
Discussion started by: wha72
7 Replies
5. Shell Programming and Scripting
Hi,
I am new to this forum and this is my first post.
I want to know that if I make an application in Tk (version of Tcl to create GUI) in windows and want to run to UNIX server, is it possible ?
In other words, can I access a UNIX server through a Tk application running on windows ?
... (1 Reply)
Discussion started by: ratneshnagori
1 Replies
6. UNIX for Advanced & Expert Users
RHEL5.0
As we know, when root create a new user, a new home directory will be created : /home/user
I want to know what determine the access permission of /home/user .
Thanks! (1 Reply)
Discussion started by: cqlouis
1 Replies
7. UNIX for Dummies Questions & Answers
A friend and I run a vbulletin forum which recently got hacked. We believe what wound up happening was the attacker gained access to the VPS box and from there elevated their user accounts to admin status on our forums.
Obviously if someone gets into our box in the future it'll be a disaster so... (1 Reply)
Discussion started by: fannypack
1 Replies
8. Solaris
Hi does anyone got idea on this x4600 machine error?
WARNING: rpcmod:svc_default_stksize is set more than once in /etc/system. "set r
pcmod:svc_default_stksize = 0x6000" applied as the current setting.
SunOS Release 5.10 Version Generic_125101-02 64-bit
Copyright 1983-2006 Sun Microsystems,... (14 Replies)
Discussion started by: incredible
14 Replies
9. Solaris
Hi, I've just managed to install openssh in my home directory on a server I have access to by using --prefix=$HOME/local after ./configure. Another thing I was having trouble with without root access was privilege separation, so I disabled that in my sshd_config. However, when I run... (10 Replies)
Discussion started by: sayeo
10 Replies
10. IP Networking
Helo !
I want to do something and I don't know where to start... I want to make a small web hosting server (just for me and a few friends) and for the sake of learning I'd like to make an account for every user. The thing is that I want everyone to log into the server and to be put in his home... (3 Replies)
Discussion started by: Sergiu-IT
3 Replies
chroot(2) System Calls Manual chroot(2)
NAME
chroot - Changes the effective root directory
SYNOPSIS
#include <unistd.h>
int chroot ( const char *path );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
chroot(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Points to the new effective root directory. If the path parameter refers to a symbolic link, the chroot() function sets the effective root
directory to the directory pointed to by the symbolic link.
DESCRIPTION
The chroot() function causes the directory named by the path parameter to become the effective root directory.
The effective root directory is the starting point when searching for a file's pathname that begins with a / (slash). The current working
directory is not affected by the chroot() function.
The calling process must have superuser privilege in order to change the effective root directory. The calling process must also have
search access to the new effective root directory.
The .. (dot-dot) entry in the effective root directory is interpreted to mean the effective root directory itself. Thus, .. (dot-dot) can-
not be used to access files outside the subtree rooted at the effective root directory.
RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. If the chroot() function fails, a value of -1 is returned and errno is set to
indicate the error.
ERRORS
If the chroot() function fails, the effective root directory remains unchanged and errno may be set to one of the following values: Search
permission is denied for any component of the pathname. The path parameter points outside the process' allocated address space. An I/O
error occurred while reading from or writing to the file system. More than MAXSYMLINKS symbolic links are encountered while resolving
path. The length of the path argument exceeds PATH_MAX or a pathname component is longer than NAME_MAX. The path parameter does not exist
or points to an empty string. A component of path is not a directory. The process does not have appropriate privilege.
RELATED INFORMATION
Functions: chdir(2)
Commands: cd(1)
Standards: standards(5) delim off
chroot(2)