Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Accessing microphone
- Date: Mon, 08 May 2006 22:34:13 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Accessing microphone
- References: <445C45C7.8030906@example.com> <445ED4E6.4010803@example.com> <d8fcc0800605072242y3510bb6ep1ac224a5ea70c210@example.com> <445EE6D9.1020508@example.com> <d8fcc0800605080003g492b9674v7ee1e93dee9772f9@example.com> <445EF3D6.9000507@example.com> <d8fcc0800605080038q636dd6cen59e7a4dd12c73e38@example.com> <445F0489.3010400@example.com> <20060508111314.365bede2.godwin.stewart@example.com> <445F23F2.30408@example.com> <d8fcc0800605080437i494e9d6fh1bc97f801f94e6dc@example.com> <445F35AB.2040800@example.com> <20060508143247.bcf3ae40.godwin.stewart@example.com> <445F3E87.8070203@example.com>
- Organization: The XEmacs Project
- User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux)
>>>>> "Dave" == Dave M Gwrites: Dave> Godwin, > That's because it's not in a regular user's $PATH, only in root's path. > As I said earlier, you have to ***BE*** root, not just have root's > permissions. Dave> dave@example.com:~$ sudo -s Dave> root@example.com:~# generate-modprobe.conf > /etc/modprobe.conf Dave> bash: generate-modprobe.conf: command not found Dave> root@example.com:~# exit Dave> exit I think Godwin's in a bad mood.... A (command) shell is just a program which aids users in running programs, either in a sequence (a script) or interactively. Many shells distinguish three different kinds of invocation: batch - running a script, may run a setup script first (often not) interactive - normal mode, normally runs a different setup script login - the shell run by the login program when you first sign on to the system, runs a third setup script. In the case of bash, ISTR that the batch mode doesn't run any setup script, interactive mode runs the .bashrc script, and login mode runs the .profile script. Normally the login shell sets up things like PATH. It is usually the case that the rc script does not set PATH and things like that; those are inherited from the parent environment. (This is the default RightThang[tm] for complex reasons I won't go into. Of course I admit that this is inconvenient for you today, but in many admins' usage there are good reasons to do it this way.) Now, the man page is not very clear, but it looks like "sudo -s" just runs an interactive shell. This should give you the power of root, but not root's environment. That's why bash can't find the program. "su -" runs a login shell, which gives you both. That's why Godwin expects that to do what you want. You could also do $ PATH=$PATH:/sbin:/usr/sbin sudo -s which should do what you need in this case. -- School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.
- Follow-Ups:
- Re: [tlug] Accessing microphone
- From: Godwin Stewart
- References:
- [tlug] Accessing microphone
- From: Dave M G
- Re: [tlug] Accessing microphone
- From: Dave M G
- Re: [tlug] Accessing microphone
- From: Josh Glover
- Re: [tlug] Accessing microphone
- From: Dave M G
- Re: [tlug] Accessing microphone
- From: Josh Glover
- Re: [tlug] Accessing microphone
- From: Dave M G
- Re: [tlug] Accessing microphone
- From: Josh Glover
- Re: [tlug] Accessing microphone
- From: Dave M G
- Re: [tlug] Accessing microphone
- From: Godwin Stewart
- Re: [tlug] Accessing microphone
- From: Dave M G
- Re: [tlug] Accessing microphone
- From: Josh Glover
- Re: [tlug] Accessing microphone
- From: Dave M G
- Re: [tlug] Accessing microphone
- From: Godwin Stewart
- Re: [tlug] Accessing microphone
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Accessing microphone
- Next by Date: Re: [tlug] Accessing microphone
- Previous by thread: Re: [tlug] Accessing microphone
- Next by thread: Re: [tlug] Accessing microphone
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links