SunOS confusing root directory and user home directory
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).
But the weird thing is that if I run a ls command, it shows me that in fact, it´s at the root directory (!!!)
And if I go to a subdirectory, something stranger happens.
It assumes a false path.
If I try to call this false path, the shell naturally can't do it.
But if I call my home path, it works as expected.
Well, I'm not so experienced with Unix and I have no idea what can be wrong. I looked some files such as .profile, dtautologin, but couldn't find anything that seemed to be causing this problem.
Can anyone give me a idea of what´s wrong with the configuration of this machine ?
Last edited by rbatte1; 04-25-2018 at 10:53 AM..
Reason: Removed the font formatting and added CODE tags where appropriate
I discovered my problem was due to a highly customized prompt with csh shell.
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]
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
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)
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)
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)
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)
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)
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)
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)
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)
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)