root

  1. rwv37

    Any reasons anymore to NOT change the default root shell to one that's not built-in?

    I know that for a long time, the standard advice for the default root shell was "don't change it" (which I learned many years ago when I got myself into a mess after having changed it 😛). Is that still the case? I seem to remember that the issue was that if you changed it to, say...
  2. First_Law_of_Unix

    How to automatically execute commands that require "su" privileges during user login.

    Hello, I couldn't find any information from the web on how to make a shell script which can automatically execute commands that require "su" privileges during user login. I have read that I can store the shell script at "/etc/profile.d/" location which did not exist by default and I had to...
  3. I

    Why logging into KDE as standard user can operate a root command?

    I’d to ask a question: why logging into KDE as a standard user (ie. not part of wheel group) is able to successfully execute “poweroff”? To clarify my question: If I boot up and login via command prompt (ie. not a desktop environment) or I ssh into the machine as a standard user, I cannot...
  4. F

    [INFO] How to avoid from (su: Sorry) error or "message"

    THERE IS THE COMMAND: sudo pw group mod wheel -m !username_here!
  5. K

    issue with terminal, cannot use clear

    I recently deleted some old packages I do not use anymore(ghc and steam utils) via pkg. For some reason, I cannot use the clear command on my user account. The weird thing is that, technically these 2 actions(deleting old packages and not being able to use a command) are unrelated. However, I...
  6. M

    Upgrade to 12.2, ZFS bootcode, and EFI text console issues

    After upgrading from FreeBSD 12.1 to 12.2-RELEASE, my machine boots and runs fine, but it no longer displays a full native resolution text console on a 17" monitor. I get the giant default 80x25 display instead. Running "vidcontrol -i mode" returns no information at all. This is a 2015 vintage...
  7. 0

    ZFS Mounting ZFS Block device || Resetting VM password

    Hello everyone, I am using FreeBSD as a host system and as a guest inside a bhyve-VM. Unfortunately I do no longer have access to the root password of the guest. (Wrote it on a piece of paper and left it in a different country. Due to Corona I cannot go there atm.) The virtual machine is based...
  8. M

    Previlige state of Xorg and Urxvt

    I'm not sure if this is an issue for security but I was wondering if is it possible to run urxvt and/or xorg as an unpreviliged user that isn't root. Starting urxvt opens an another instance by root killing of which effects nothing at all.
  9. JazzSinatra

    Accidentally run chown -R user /*

    I accidentally did run chown -R my_username /* instead of chown -R my_username ./*, so how do I undo this? Can I simply run chown -R root /* and then chown -R my_username /home/my_username? EDIT: The installation is pretty fresh. I installed this system couple of days ago and it doesn't have...
  10. Petr Fischer

    Solved How to mount FreeBSD 12 GELI encrypted ZFS root manually?

    Hello! I have FreeBSD 12 installation with GELI encrypted ZFS root partition (created automatically from the installer). But now, my HW died and I need to import and mount the root filesystem as external disk. How can I mount this GELI encrypted ZFS root partition manually please? Note: In the...
  11. vermaden

    HOWTO: FreeBSD Desktop - Part 2.1 - Install FreeBSD 12

    I would like to share HOWTO in 𝐅𝐫𝐞𝐞𝐁𝐒𝐃 𝐃𝐞𝐬𝐤𝐭𝐨𝐩 series about fonts and frameworks. 𝗙𝗿𝗲𝗲𝗕𝗦𝗗 𝗗𝗲𝘀𝗸𝘁𝗼𝗽 - 𝗣𝗮𝗿𝘁 𝟮.𝟭 - 𝗜𝗻𝘀𝘁𝗮𝗹𝗹 𝗙𝗿𝗲𝗲𝗕𝗦𝗗 𝟭𝟮 https://vermaden.wordpress.com/2018/11/20/freebsd-desktop-part-2-1-install-freebsd-12/ You may also like earlier articles in the series. Part 1 – Simplified Boot...
  12. DenisVS

    OBS Studio does not work under user

    Hi! I want to stream my online video to Youtube. The most appropriate software is OBS Studio. multimedia/obs-studio Under the user obs does not work: info: --------------------------------- info: audio settings reset: samples per sec: 44100 speakers: 2 The X11 connection...
  13. daBee

    Exit to user from SU in bash script

    Is there a way I can initiate a script as root, then exit to my normal admin user (sudoers) to accomplish further tasks as the user? I tried exit but the script stopped completely. Things like RVM like to be installed using the user.
  14. Bill Evans at Mariposa

    Perl Perl script to run as root (generalized)

    I would like to be able to run certain Perl scripts on my system as root, even though the "user" calling them is not running as root. For each script I can write a C wrapper, setting setuid root for that wrapper; the wrapper would change the UID to 0 and then call the Perl script, which itself...
  15. daruffneck2

    Solved root or userland for cron job

    May someone can help me out. I want to use a script everytime my machine boots up. Execute before even the splash screen pops up. As I am the single user, I could set it as root in the crontab /etc/crontab following the handbook, so it would act for each other user. If I do so, do I set it as a...
  16. R

    C setreuid() returns "operation not permitted" even it was sudo'ed

    Hello, I was testing one of my software on FreeBSD ,Where in the software i've been trying to replace the Real/Effective UID and GID of the process using below two functions setregid(),setreuid(). But these both functions return -1 as a result(when i got the errno to print it ssys "operations...
  17. amiramix

    Grant user permission to epjitsu (Fujitsu ScanSnap S1100)

    On root: root@crayon2:/var/log # scanimage -L device `v4l:/dev/video1' is a Noname Creative WebCam Live! Motion virtual device device `v4l:/dev/video0' is a Noname Mouse Scanner virtual device device `epjitsu:libusb:003:003' is a FUJITSU ScanSnap S1100 scanner On user: g@crayon2:~ % scanimage...
  18. amiramix

    Solved Access permisions to cd0 for user

    I am trying to sort out permissions to device cd0 so that sysutils/k3b-kde4 can see the device. For now when it starts it shows error: No optical drive found. When k3b is started as root is sees the device properly. I have all the permissions set up and I can mount cd0 as the user...
  19. N

    How do you run commands as the root user?

    Hello I read other posts concerning the root but still cannot seem to run /etc/ttys as the root user. I was sure I had logged into the system console as the root, because I was using the .vmdk config file which I think comes only with the root user account at the start. But when I run...
  20. master-richie

    root zfs install on FreeBSD 9.2 with gpt - clarity needed

    I have a G5 HP server I decided to repurpose as a local Drush / Drupal development machine. I decided against using hardware raid considering the age of the server hardware vs. the brand new 1tb SAS drives I just installed - in case the server hard fails I want my drives to be portable to...
Back
Top