Su -i username not working why


 
Thread Tools Search this Thread
Operating Systems Solaris Su -i username not working why
# 1  
Old 04-11-2013
Su -i username not working why

Hi all,

System is Solaris10

There is one script which i was able to execute with following entry:-
Code:
 su  user1 -c "/u01/scripts/mfg/_db-start.all"

But when I do this, which asked to do with -i option

Code:
 su -i user1 -c "/u01/scripts/mfg/_db-start.all"

It gives following message:-
Code:
Usage: su [-] [ username [ arg ... ] ]

I searched a lot but I don't know meaning of "-i" option here, what is its meaning?

Thanks,
Manali
# 2  
Old 04-11-2013
-i obviously does not exist, as the error msg tells you. See also man su in these forums
This User Gave Thanks to RudiC For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Why does "ps -[u|U] username" not list processes when username is numeric?

Greetings, The title pretty much says it all. I've snooped everywhere and can't find anything on this. Since our organization went to numeric usernames, using the u|U option for ps returns no processes. Example passwd entry: 320074:DjZAJKXun8HBs:10129:6006:Joe Y:/cadhome/analysis/jy:/bin/bash... (4 Replies)
Discussion started by: crimso
4 Replies

2. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

3. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

4. Post Here to Contact Site Administrators and Moderators

Change of username

Hi, I'd like to change my username..... is there a mechanism to do this or can you do it? (1 Reply)
Discussion started by: Martincorneuk
1 Replies

5. Shell Programming and Scripting

Why username is always empty

i have a html file with uploads a file and sends the username to a .cgi file using post method. the part of code in the cgi file is as below. i am able to get the filename but not able to get the username thats getting posted to the file how to know the value of username. i am trying to store... (1 Reply)
Discussion started by: sasidhdv
1 Replies

6. Post Here to Contact Site Administrators and Moderators

username

Is it possible to change my username in this site or is thre a way to delete my account and then create a new one with a diffrent user name (2 Replies)
Discussion started by: floresr
2 Replies

7. UNIX for Advanced & Expert Users

SFTP username

Hi , I have an issue with sftp username as i have @ character in the username. eg: username=abc@123 when i do as below, sftp abc@123@servername # Its taking only 123@servername . Also, i tried following options, sftp abc\@123@servername sftp 'abc\@123'@servername Please... (2 Replies)
Discussion started by: mohanpadamata
2 Replies

8. AIX

Cannot delete a username

Hi experts! While I am deleting a username via smitty or by command line with userdel or rmuser y get the following error: Error committing changes to "luke" : Value is invalid. Also when adding a user I get the same error, do you know experts how to solve this issue? I'm using AIX 5.3... (5 Replies)
Discussion started by: agasamapetilon
5 Replies

9. Solaris

Using all numeric for username

Hello, We have a Solaris 9 machine and recently our client want to create username based on staff numbers (all numeric). Is there any limitation in Solaris regarding creating username with numeric values (eg: 13598029)? Thanks & Regards Aryawarman Mahzar (5 Replies)
Discussion started by: aryamahzar
5 Replies

10. Solaris

Username length

I have been told that my college wants to implement LDAP. This creates a problem for me because my users active directory names and email user names differ from their unix system logins. Is there any way to make the Unix usernames more compliant to my user's other account usernames??? We use... (1 Reply)
Discussion started by: rod23
1 Replies
Login or Register to Ask a Question