Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #264062
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: didn't can use "fdisk"! |
| Date | 2023-12-01 21:10 +0100 |
| Message-ID | <HGhZL-aq2h-9@gated-at.bofh.it> (permalink) |
| References | <HGhn4-apAk-3@gated-at.bofh.it> <HGhGp-apGC-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Dec 01, 2023 at 07:46:28PM +0000, Andy Smith wrote: > My first guess is that you may have done "su" which results in you > not having /sbin in your path. So you need to execute it as > /sbin/fdisk, or "su -", or become root by some other means. At this point, we no longer need to guess. It's immediately clear. Using "su -" is an acceptable solution, though not my preferred one if this is your own system, as opposed to one where you are a "guest admin". I'd rather fix the problem permanently, by putting appropriate content into the /etc/default/su file. unicorn:~$ cat /etc/default/su ALWAYS_SET_PATH yes unicorn:~$ su Password: root@unicorn:/home/greg# declare -p PATH declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" root@unicorn:/home/greg#
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
didn't can use "fdisk"! fuf <fuflono@gmail.com> - 2023-12-01 20:30 +0100
Re: didn't can use "fdisk"! Tom Furie <tom@furie.org.uk> - 2023-12-01 20:40 +0100
Re: didn't can use "fdisk"! Greg Wooledge <greg@wooledge.org> - 2023-12-01 20:40 +0100
Re: didn't can use "fdisk"! Andy Smith <andy@strugglers.net> - 2023-12-01 20:50 +0100
Re: didn't can use "fdisk"! Greg Wooledge <greg@wooledge.org> - 2023-12-01 21:10 +0100
csiph-web