bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/bin/su - newuser -c "command" does not execute .profile


From: markus . sonderegger
Subject: /bin/su - newuser -c "command" does not execute .profile
Date: Wed, 30 Jan 2002 12:06:37 +0100

Here the typescript:

root@ws0054:/# bash -version
GNU bash, version 2.03.0(1)-release (sparc-sun-solaris)
Copyright 1998 Free Software Foundation, Inc.
root@ws0054:/# id
uid=0(root) gid=1(other)
root@ws0054:/# /bin/su - bcom -c "id"
The content of .profile is:
echo The content of .profile is:
cat .profile
echo $SHELL has read .profile
/bin/sh has read .profile
uid=120(bcom) gid=129(bcom)
root@ws0054:/# usermod -s /bin/bash bcom
root@ws0054:/# /bin/su - bcom -c "id"
uid=120(bcom) gid=129(bcom)

As one can see from the last line .profile gets not executed.

Do i oversee something or make something wrong?

Thanks for any help.
Regards
Markus

---
Dr. Markus Sonderegger
Bank Julius Baer & Co. Ltd., Zurich, Switzerland
Telephone: +41 58 887 7281, Mobile: +41 79 698 09 79, Telefax: +41 58 887
4475
markus.sonderegger@juliusbaer.com, www.juliusbaer.com

*****Disclaimer*****
This message is for the addressee only and may contain confidential or
privileged information. You must delete and not use it if you are not the
intended recipient. It may not be secure or error-free. All e-mail
communications to and from the Julius Baer Group may be monitored.
Processing of incoming e-mails cannot be guaranteed. Any views expressed in
this message are those of the individual sender. This message is for
information purposes only. All liability of the Julius Baer Group and its
entities for any damages resulting from e-mail use is excluded. US persons
are kindly requested to read the important legal information presented
after clicking here: http://www.juliusbaer.com/maildisclaimer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]