Hi I was just wondering if this script looks ok I run it after I login thanks.
#!/bin/bash echo "hi, starting wifi, nft and desktop" sudo ls sudo systemctl start wpaStart.service sudo nft -f ~/config/nftLocal startxfce4 Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalHi I was just wondering if this script looks ok I run it after I login thanks.
#!/bin/bash echo "hi, starting wifi, nft and desktop" sudo ls sudo systemctl start wpaStart.service sudo nft -f ~/config/nftLocal startxfce4
sudo lsseems pointless, as does theecho. Who will be running this? How? How do you give the password? Is the script running interactively?sudos that you shouldn't: it starts services that should almost certainly be activated in a different way, running a program on a user-owned directory but as root user (leading to fun ownerships and exploitability effects). And, startingnftafter your network comes up is another really bad idea. This all screams "your system has useful session management built, in, but somehow you're trying to use it as if you only had desktop linuxes of the year 1995, and it's biting you".