Sponsored Content
Operating Systems Solaris SunOS confusing root directory and user home directory Post 303018729 by egyassun on Wednesday 13th of June 2018 04:21:12 PM
Old 06-13-2018
Hi Don,

I discovered my problem was due to a highly customized prompt with csh shell.

Code:
 
 set prompt="`uname -n | cut -f1 -d"." `\\!`whoami`($GROUP,$NCID,$VIEW)@../$cwd:t[\!] "

Anyway, I answer your questions.

Quote:
What do you mean by "someone configured "myuser" as default user after init"?
I am using two machines with Solaris. The other machine asks the user for credentials. But this machine does not.
And when it starts, it goes directly to myuser´s home directory. So I think "myuser" is the default user for this Solaris session.

Quote:
What did "someone" do to make this configuration change?
I don´t know who did it, if "someone" still works at this company (probably not), and which configuration file was edited.

Quote:
How did you log into the system?
As I said - without credentials.

Quote:
What output do you get from the command line:
Code:
who am I;ps

[CODE]
myuser pts/3 Jun 13 21:24 (unix: 0.0)
PID TTY TIME CMD
1324 pts/3 0:00 ps
845 pts/3 0:00 csh
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

user home directory problem

The home directory for me on my system is on /home/kwon. It was created using "useradd kwon" When i go to change the home directory for a user doing a usermod -d /home/test when they log on it gives them messages saying to generate new ssh keys, and it does. It gives me a thing that says... (1 Reply)
Discussion started by: BangYourWallnut
1 Replies

2. Solaris

running sshd server from home directory without root access

Hi, I managed to install openssh from source on my home directory on a server I don't have root access to. I had problems with privilege separation because of permissions initially so I disabled it in sshd_config. But when I run sshd from where I installed it by doing ~/local/sbin/sshd, nothing at... (0 Replies)
Discussion started by: sayeo
0 Replies

3. Shell Programming and Scripting

how to find out the home directory of a user??

Hi all, I would like to know how to find out the home directory of a particular user.. eg, If am the root , then my Home directory will be / if say am just a user logging into the terminal then my home dir would change, so accordingly i would like to know how to find it out... I know that... (7 Replies)
Discussion started by: wrapster
7 Replies

4. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

5. Red Hat

User's home directory

Hi, By default user's home directory will be /home/$user. I want to change it to /javauser/$user. How can I do it? Thanks Jeevan. (5 Replies)
Discussion started by: jredx
5 Replies

6. Solaris

Home Directory for oracle user

Hello all, I am Installing Oracle 11g on my Solaris OS. I created the below oracle user: # /usr/sbin/useradd -g oinstall -G dba oracle but when i am trying to to su - oracle it give me the below error No directory Do i have to setup a home directory for oracle user? and how can i do... (1 Reply)
Discussion started by: beayni33
1 Replies

7. UNIX for Dummies Questions & Answers

Restricting a user to their home directory and below

I found this old closed thread: I can do these things, but how to I change someone's profile - where do I find the profile? I'm running Centos 5.6 ~~~~~~~~~ providing you have the password shell set to ksh, you can put this in his .profile: cd /opt/load alias -x cd=: (6 Replies)
Discussion started by: jjj0923
6 Replies

8. UNIX for Dummies Questions & Answers

User's home directory not being created

I am trying to create Oracle user. I will install oracle after that. But my problem is /home/oracle directory is not being created. bash-3.2# useradd -g oinstall -G dba,oper -d /home/oracle -m oracle cp: /home/oracle: Operation not applicable chown: /home/oracle: No such file or directory ... (3 Replies)
Discussion started by: hubatuwang
3 Replies

9. Shell Programming and Scripting

rename all file with blank in directory from home root , please help me

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

10. Shell Programming and Scripting

Trying to delete a user and home directory

Good Afternoon, I'm trying userdel -r username on Solaris 9 and getting UX: userdel: ERROR: unable to find status about home directory: No such file or directory I see the user's home directory and getent passwd shows the user Anybody know what's causing it? (2 Replies)
Discussion started by: Stellaman1977
2 Replies
chroot(2)							   System Calls 							 chroot(2)

NAME
chroot, fchroot - change root directory SYNOPSIS
#include <unistd.h> int chroot(const char *path); int fchroot(int fildes); DESCRIPTION
The chroot() and fchroot() functions cause a directory to become the root directory, the starting point for path searches for path names beginning with / (slash). The user's working directory is unaffected by the chroot() and fchroot() functions. The path argument points to a path name naming a directory. The fildes argument to fchroot() is the open file descriptor of the directory which is to become the root. The privilege {PRIV_PROC_CHROOT} must be asserted in the effective set of the process to change the root directory. While it is always pos- sible to change to the system root using the fchroot() function, it is not guaranteed to succeed in any other case, even if fildes is valid in all respects. The ".." entry in the root directory is interpreted to mean the root directory itself. Therefore, ".." cannot be used to access files out- side the subtree rooted at the root directory. Instead, fchroot() can be used to reset the root to a directory that was opened before the root directory was changed. RETURN VALUES
Upon successful completion, 0 is returned. Otherwise, -1 is returned, the root directory remains unchanged, and errno is set to indicate the error. ERRORS
The chroot() function will fail if: EACCES Search permission is denied for a component of the path prefix of dirname, or search permission is denied for the directory referred to by dirname. EBADF The descriptor is not valid. EFAULT The path argument points to an illegal address. EINVAL The fchroot() function attempted to change to a directory the is not the system root and external circumstances do not allow this. EINTR A signal was caught during the execution of the chroot() function. EIO An I/O error occurred while reading from or writing to the file system. ELOOP Too many symbolic links were encountered in translating path. ENAMETOOLONG The length of the path argument exceeds PATH_MAX, or the length of a path component exceeds NAME_MAX while _POSIX_NO_TRUNC is in effect. ENOENT The named directory does not exist or is a null pathname. ENOLINK The path argument points to a remote machine and the link to that machine is no longer active. ENOTDIR Any component of the path name is not a directory. EPERM The {PRIV_PROC_CHROOT} privilege is not asserted in the effective set of the calling process. SEE ALSO
chroot(1M), chdir(2), privileges(5) WARNINGS
The only use of fchroot() that is appropriate is to change back to the system root. SunOS 5.11 20 Jan 2003 chroot(2)
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy