Help with "no shell" on su command


 
Thread Tools Search this Thread
Operating Systems Solaris Help with "no shell" on su command
# 1  
Old 07-27-2009
Data Help with "no shell" on su command

Hai ... please hlp me

i have problem with su command to switch to ather user

1. if i am using "su someone" it will raise message :no shell
2. if i am using "su - someone" it will raise message :no directory

i trace using truss command an the result

1. using " su someone"

execve("/bin/ksh", 0xFFBFEAE8, 0xFFBFFBF0) Err#13 EACCES
fstat64(2, 0xFFBFDC08) = 0
write(2, " s u : N o s h e l l".., 13) = 13
_exit(3)

1. using " su - someone"

chdir("/export/home/someone") Err#13 EACCES
fstat64(2, 0xFFBFDC00) = 0
write(2, " N o d i r e c t o r y".., 14) = 14
_exit(1)

i already chek using getfacl the result is

# getfacl someone

# file:someone
# owner:someone
# group:grp1

user::rwx
group::r-x #effective:r-x
mask:r-x
other:r-x


other info



=> /etc/passwd on line someone

someone:x:109:106::/export/home/someone:/bin/ksh

=> /etc/shells

/sbin/sh
/sbin/ksh
/bin/sh
/bin/ksh
/usr/bin/bash

i am using SunOS 5.9

should i restart my box Smilie to resolved my problem ...
# 2  
Old 07-27-2009
What says:
Code:
 ls -l /bin/ksh /export/home/someone

?
# 3  
Old 07-28-2009
Bug

# ls -l /bin/ksh /export/home/someone
-r-xr-xr-x 3 root bin 209268 Mar 28 2006 /bin/ksh

/export/home/someone:
total 0

---------- Post updated at 01:11 PM ---------- Previous update was at 09:14 AM ----------

hi

problem solved

its becouse the permission for / were drwx------
and i change to drwxr-xr-x

ok thank
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

6. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. AIX

"too big" and "not enough memory" errors in shell script

Hi, This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies

9. UNIX for Advanced & Expert Users

The "PS" command was displaying*terminals named as "SYSCON"

Hi, When typing the command ps -fe.the system is showing a process called SYSCON:confused:.... I am not sure what process is that.I hava a script that kills all command staring with 'sys' but i don't want to kill syscon:( since i think it is some system process:confused: .Please help me to find... (1 Reply)
Discussion started by: kiranjose85
1 Replies

10. UNIX for Dummies Questions & Answers

No utpmx entry: you must exec "login" from lowest level "shell"

Hi I have installed solaris 10 on an intel machine. Logged in as root. In CDE, i open terminal session, type login alex (normal user account) and password and i get this message No utpmx entry: you must exec "login" from lowest level "shell" :confused: What i want is: open various... (0 Replies)
Discussion started by: peterpan
0 Replies
Login or Register to Ask a Question