Problem when I try to create a directory on Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris Problem when I try to create a directory on Solaris 8
# 1  
Old 09-07-2011
Problem when I try to create a directory on Solaris 8

Dear Gurus of solaris
I have a problem when I try to create a directory

Quote:
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d30 66362747 45470050 20229070 70% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 5874840 16 5874824 1% /var/run
swap 5874840 16 5874824 1% /tmp
#
when I enter in the /home/ directory and try to create a new directory appear the following error
Quote:
# cd /home
# ls -l
total 0
# ls -al
total 3
dr-xr-xr-x 1 root root 1 Sep 7 15:16 .
drwxr-x--x 33 root root 1024 Sep 7 15:39 ..
# mkdir oso
mkdir: Failed to make directory "oso"; Operation not applicable
#
Why If I am root, Can any guru can help me
# 2  
Old 09-07-2011
You're running automounter. There is a /home entry in /etc/auto_master. Turn off the automounter or at least remove the entry: "/home" from /etc/auto_master
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 09-07-2011
Quote:
Originally Posted by jim mcnamara
You're running automounter. There is a /home entry in /etc/auto_master. Turn off the automounter or at least remove the entry: "/home" from /etc/auto_master
Dear jim mcnamara
When I see the auto_master I observe the following:
Quote:
# cd /etc/
# cat auto_master
# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
/xfn -xfn
/- auto_direct
#
Tell me how to turn off automounter

---------- Post updated at 04:40 PM ---------- Previous update was at 04:20 PM ----------

I have a problem when I'll try to enter in my server
Let me explain.
When I try to login to this Equipment (Application Server - 192.168.1.6)
Quote:
c:\> telnet 192.168.1.6
SunOS 5.8
login: andres (The same problem, if a put andres)
Password: (guillen) (The same problem, if a put guillen)
No directory! Logging in with home=/
Last login: Mon Sep 5 16:50:29 from 192.168.99.8
Sun Microsystems Inc. SunOS 5.8 Generic Patch February 2004
You have new mail.
ApplicServer
When I review the passwd (/etc/passwd) file I observe that these two account (andres and guillen)
exist:
ApplicServer # cat /etc/passwd
root:x:0:1:Super-User:/:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
listen:x:37:4:Network Admin:/usr/net/nls:
nobody:x:60001:60001:Nobody:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x Nobody:/:
andres:x:2001:2000::/home/andres:/bin/csh
guillen:x:2002:2000::/home/guillen:/bin/csh
nap:x:1001:1:usuario del NAP:/import/home/nap:/bin/sh
it:x:1002:10::/it:/bin/sh
anaer:x:100:102:ejecucion de script anaer:/home/anaer:/bin/sh
ApplicServer#
In base of the results of catīs command, I observe that when I use "andres" (the same problem appear if a use guillen) account the system try to find the following path:
Quote:
/home/andres,
These is the home path directory in the passwd file. But this path or directory is not exit.
Let me show:
Quote:
ApplicServer # ls -al /home/
total 3
dr-xr-xr-x 1 root root 1 Sep 5 16:50 .
drwxr-x--x 33 root root 1024 May 7 2010 ..
ApplicServer #
This is the reason why appear the following message
No directory! Logging in with home=/

In other application Server (which have the same userīs account) I observe the following:
Quote:
andres@AppliServer12 /home/andres 2 > df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 4133838 3474475 618025 85% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/dsk/c1t0d0s3 2058319 154296 1842274 8% /var
swap 10107088 24 10107064 1% /var/run
swap 10239032 131968 10107064 2% /tmp
/dev/md/dsk/d10 210996110 65555 208820594 1% /export3
/dev/dsk/c1t0d0s6 2058319 1860104 136466 94% /export1
/dev/dsk/c1t0d0s5 10327372 2534710 7689389 25% /export0
/dev/dsk/c1t0d0s7 2058319 1153780 842790 58% /export2
/dev/dsk/c1t0d0s4 45781985 2076160 43248006 5% /opt
/export0/home/andres 10327372 2534710 7689389 25% /home/andres
/export1/home/guillen
2058319 1860104 136466 94% /home/guillen
andres@AppliServer12 /home/andres 4 > ls /home/
andres/ guillen/
andres@AppliServer12 /home/andres 5 >
But in my Server that have problem

Code:
# ls -al /home/
total 3
dr-xr-xr-x   1 root     root           1 Sep  7 15:16 .
drwxr-x--x  33 root     root        1024 Sep  7 15:39 ..
#

Can any specialist can help me please!!!
# 4  
Old 09-07-2011
In Solaris local home directories are stored under /export/home. You should modify your user account to reflect that:
Code:
usermod -d /export/home/andres andres

Then create that directory with proper rights:
Code:
mkdir /export/home/andres
chown andres:your_group /export/home/andres

This User Gave Thanks to bartus11 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create directory and sub-directory with awk and bash

In the below I am trying to create a parent directory using the R_2019 line from f1 if what above it is not empty. I then create sub-directories under each parent if there is a match between $2 of f1 and $2. Inside each sub-folder the matching paths in $3 and $4 in f2are printed. If there is no... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies

3. Shell Programming and Scripting

How Create new directory and move files to that directory.?

Hi All, We have main directory called "head" under this we have several sub directories and under these directories we have sub directories. My requirement is I have to find the SQL files which are having the string "procedure" under "head" directory and sub directories as well. And create... (14 Replies)
Discussion started by: ROCK_PLSQL
14 Replies

4. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies

5. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

6. Shell Programming and Scripting

Create variables from directory list problem

I am trying to take a list of directories in a folder and give them a variable name. I have this working with the exception that the shell_exec command wants to place a return. Here is my code which might explain better what I am trying to do: <?php session_start(); $student1=$_SESSION;... (0 Replies)
Discussion started by: robp2175
0 Replies

7. Shell Programming and Scripting

Cannot create a directory

Hi, I am using the following command to check weather directory exists , if not i am creating a directory. if then echo "directory already exsist" else mkdir healthcheck.log echo "directory created" >> $_LOGFILE fi But i am gettin the following error in... (6 Replies)
Discussion started by: ahamed
6 Replies

8. Solaris

create user with RWX access to a specific directory in Solaris 10

I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that? Thanks (5 Replies)
Discussion started by: gsander
5 Replies

9. Shell Programming and Scripting

Newbie problem with simple script to create a directory

script is: dirname= "$(date +%b%d)_$(date +%H%M)" mkdir $dirname should create a directory named Nov4_ Instead I get the following returned: root@dchs-pint-001:/=>./test1 ./test1: Nov04_0736: not found. Usage: mkdir Directory ... root@dchs-pint-001:/=> TOO easy, but what am I... (2 Replies)
Discussion started by: gwfay
2 Replies

10. UNIX for Advanced & Expert Users

unable to create any directory that uses numbers as the directory name

Version-Release number of selected component (if applicable): ================================================================== root@server # cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 5) root@server # uname -a Linux server.integrityserver.net... (16 Replies)
Discussion started by: fed.linuxgossip
16 Replies
Login or Register to Ask a Question