9 More Discussions You Might Find Interesting
1. Solaris
I've got a Solaris 10 server that got a corrupted root filesystem. After being forced to run fsck against it, the OS is now up and the filesystem read/writable.
However, ssh from any account other than root fails with the following error:
PTY allocation request failed on channel 0
On the... (0 Replies)
Discussion started by: michaeltravisuk
0 Replies
2. Solaris
Hi,
i got the following error when i tried to access the cygwin x server from a windows XP PC.
"xdmcp fatal error session failed session 23 failed for display"
Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies
3. Solaris
what is the difference between desktop session and console session in solaris
as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies
4. Solaris
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies
5. Shell Programming and Scripting
Hi,
Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting.
Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
Discussion started by: en7smb
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
on a Linux RED HAT I issue the following to mount a shared filesystem on a Win server 2003 and it fails :
# smbmount //172.16.0.42/eb_depot /mnt/eb_depot -o username=domaine/Administrateur rw
Password:
30494: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection... (0 Replies)
Discussion started by: big123456
0 Replies
7. AIX
I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it?
I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame.
Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies
8. Shell Programming and Scripting
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies
9. UNIX for Dummies Questions & Answers
I have the following shell script to map a drive to a windows machine:
echo Enter password:
stty -echo
read passwd
stty echo
mount -t smbfs -ousername=myusername,password=$passwd //192.168.2.5/sharename /mnt/mountname
It works fine and the share mounts, but for some reason I get this... (4 Replies)
Discussion started by: Spetnik
4 Replies
NSENTER(1) User Commands NSENTER(1)
NAME
nsenter - run program with namespaces of other processes
SYNOPSIS
nsenter [options] [program] [arguments]
DESCRIPTION
Enters the namespaces of one or more other processes and then executes the specified program. Enterable namespaces are:
mount namespace
mounting and unmounting filesystems will not affect rest of the system (CLONE_NEWNS flag), except for filesystems which are explic-
itly marked as shared (by mount --make-shared). See /proc/self/mountinfo for the shared flag.
UTS namespace
setting hostname, domainname will not affect rest of the system (CLONE_NEWUTS flag).
IPC namespace
process will have independent namespace for System V message queues, semaphore sets and shared memory segments (CLONE_NEWIPC flag).
network namespace
process will have independent IPv4 and IPv6 stacks, IP routing tables, firewall rules, the /proc/net and /sys/class/net directory
trees, sockets etc. (CLONE_NEWNET flag).
PID namespace
children will have a set of PID to process mappings separate from the nsenter process (CLONE_NEWPID flag). nsenter will fork by
default if changing the PID namespace, so that the new program and its children share the same PID namespace and are visible to each
other. If --no-fork is used, the new program will be exec'ed without forking.
See the clone(2) for exact semantics of the flags.
If program is not given, run ``${SHELL}'' (default: /bin/sh).
OPTIONS
Argument with square brakets, such as [file], means optional argument. Command line syntax to specify optional argument --mount=/path/to
/file. Please notice the equals sign.
-t, --target pid
Specify a target process to get contexts from. The paths to the contexts specified by pid are:
/proc/pid/ns/mnt the mount namespace
/proc/pid/ns/uts the UTS namespace
/proc/pid/ns/ipc the IPC namespace
/proc/pid/ns/net the network namespace
/proc/pid/ns/pid the PID namespace
/proc/pid/root the root directory
/proc/pid/cwd the working directory respectively
-m, --mount [file]
Enter the mount namespace. If no file is specified enter the mount namespace of the target process. If file is specified enter the
mount namespace specified by file.
-u, --uts [file]
Enter the UTS namespace. If no file is specified enter the UTS namespace of the target process. If file is specified enter the UTS
namespace specified by file.
-i, --ipc [file]
Enter the IPC namespace. If no file is specified enter the IPC namespace of the target process. If file is specified enter the IPC
namespace specified by file.
-n, --net [file]
Enter the network namespace. If no file is specified enter the network namespace of the target process. If file is specified enter
the network namespace specified by file.
-p, --pid [file]
Enter the PID namespace. If no file is specified enter the PID namespace of the target process. If file is specified enter the PID
namespace specified by file.
-r, --root [directory]
Set the root directory. If no directory is specified set the root directory to the root directory of the target process. If direc-
tory is specified set the root directory to the specified directory.
-w, --wd [directory]
Set the working directory. If no directory is specified set the working directory to the working directory of the target process.
If directory is specified set the working directory to the specified directory.
-F, --no-fork
Do not fork before exec'ing the specified program. By default when entering a pid namespace enter calls fork before calling exec so
that the children will be in the newly entered pid namespace.
-V, --version
Display version information and exit.
-h, --help
Print a help message.
SEE ALSO
setns(2), clone(2)
AUTHOR
Eric Biederman <ebiederm@xmission.com>
AVAILABILITY
The nsenter command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils
/util-linux/>.
util-linux January 2013 NSENTER(1)