Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a new one to linux. I installed ubuntu 16.04 in my laptop. Everything working fine, but my wifi not working. It is showing wifi option in the network setup along with wired connection and vpn. But it is impossible to turn wifi ON. In terminal I typed
# iwconfig
It showing wlp12s0
Also I checked softwares and updates >> additional drivers and it is showing a wifi driver.
It would help a lot if you told us the make and model of your wifi card. The fact that you have a device name for it is a good sign; it means that, whatever it is, the kernel has recognised it and loaded the correct driver. But some cards need additional firmware to actually work.
First of all thank you for your reply. Could you please help me to find those details, means to find all details you want. Which commands I have to type in terminal to find those details? Please tell me. I will send you the results
First of all thank you for your reply. Could you please help me to find those details, means to find all details you want. Which commands I have to type in terminal to find those details? Please tell me. I will send you the results
Thank you,
Jaise
Hi!
Try to issue this command and we'll start from there:
Code:
lspci | grep -i network
Then paste the output on the forum (preferably inside code tags).
Also, the fact that you cannot turn WiFi on could be due to the fact that it is blocked. To get around this you may have to use rfkill. But, one thing at a time. Start with the output from the command above.
First of all thank you for your reply. Could you please help me to find those details, means to find all details you want. Which commands I have to type in terminal to find those details?
Hi...
Welcome to the forum
In case HMW's code does not work, please copy and paste the following codes into the terminal and post back the entire results...
Code:
lspci -nnk | grep -i net -A2
Code:
lsmod
Code:
iwconfig
Code:
rfkill list
Also, just as a suggestion, you might want to change your username using the instructions at the top of the page here, lest your email inbox ends up with a boatload of SPAM in the very near future.
advark71, you need to be sure that the user understands that 'root' privileges allow the use of the commands suggested. Most newbies do not realize the need to use 'su-' or 'sudo'. In other threads you have failed to provide this information. Just a helpful reminder!
advark71, you need to be sure that the user understands that 'root' privileges allow the use of the commands suggested. Most newbies do not realize the need to use 'su-' or 'sudo'. In other threads you have failed to provide this information. Just a helpful reminder!
Hi...
The commands I've listed above have never required root privileges (or "su" or "sudo") nor has any member whom I've requested this information from reported an issue with this.
At least on Debian, all except lsmod are in /sbin and /usr/sbin respectively and thus require root (sudo) privileges, maybe on *buntu this is different?
Best regards,
HMW
Last edited by HMW; 05-19-2016 at 10:59 AM.
Reason: Fixed some errors
At least on Debian, all except lsmod are in /sbin and /usr/sbin respectively and thus require root (sudo) privileges, maybe on *buntu this is different?
Hi...
In my experience, it is. As an example...
Code:
aaron@aaron:~$ lspci -nnk | grep -i net -A2
00:07.0 Bridge [0680]: NVIDIA Corporation MCP61 Ethernet [10de:03ef] (rev a2)
Subsystem: Dell Inspiron 531 [1028:020e]
Kernel driver in use: forcedeth
aaron@aaron:~$ iwconfig
^[[6~ra0 Ralink STA ESSID:"(deleted)" Nickname:"MT7601STA"
Mode:Managed Frequency=2.412 GHz Access Point: 00:23:A3:7C:DD:C0
Bit Rate=18 Mb/s
RTS thr:off Fragment thr:off
Link Quality=97/100 Signal level:-57 dBm Noise level:-77 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
lo no wireless extensions.
eth0 no wireless extensions.
Regards...
Last edited by ardvark71; 05-19-2016 at 11:24 AM.
Reason: Deleted information.
The commands I've listed above have never required root privileges (or "su" or "sudo") nor has any member whom I've requested this information from reported an issue with this.
Regards...
By your execution of a command to list information then it is possible. But if you attempt to make a configuration change by usage of those commands then you possibly have correct/changed paths for your user. Normally a user does not have access to admin commands (root) for security reasons on most Gnu/Linux. You can grant permissions or change groups but that too is something the super user/root would need to do. You can use absolute paths to get to some commands but that to can bite your system. Even with absolute paths a normal user will not have permissions for certain system configuration commands, such as;
Code:
~$ /sbin/fdisk /dev/sda
Welcome to fdisk (util-linux 2.21.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: unable to open /dev/sda: Permission denied
Thankfully a user cannot do a 'fdisk' without root privileges. You can list some information but you cannot change system configurations without permissions.
For a normal user on most Gnu/Linux to use your commands for;
Code:
lspci -nnk | grep -i net -A2
The path would be to list information; :~$ /usr/sbin/rfkill list
Maybe it is so for some bash commands for Ubuntu's but I'm sure you cannot modify system configurations as a normal user without 'su-' or 'sudo' via changes via the file /etc/sudoers.
Open access for a normal user to the bash system configuration commands is very dangerous. I've seen to many issues when someone has been given root privileges, especially when one does not know admin and what can happen when someone issues the command with wrong arguments or options. Example of using the 'dd if=/dev/sda2 of=/dev/sda1' and then wonder why the system has issues if the system files are on '/dev/sda1'.
Even Ubuntu it seems cautions root usage;
Quote:
From https://help.ubuntu.com/community/RootSudo
Background Information In Linux (and Unix in general), there is a SuperUser named root. The Windows equivalent of root is the Administrators group. The SuperUser can do anything and everything, and thus doing daily work as the SuperUser can be dangerous. You could type a command incorrectly and destroy the system. Ideally, you run as a user that has only the privileges needed for the task at hand. In some cases, this is necessarily root, but most of the time it is a regular user. By default, the root account password is locked in Ubuntu. This means that you cannot login as root directly or use the su command to become the root user. However, since the root account physically exists it is still possible to run programs with root-level privileges. This is where sudo comes in - it allows authorized users (normally "Administrative" users; for further information please refer to AddUsersHowto) to run certain programs as root without having to know the root password.
This means that in the terminal you should use sudo for commands that require root privileges; simply prepend sudo to all the commands you need to run as root. For more extensive usage examples, please see below. Similarly, when you run GUI programs that require root privileges (e.g. the network configuration applet), use graphical sudo and you will also be prompted for a password (more below). Just remember, when sudo asks for a password, it needs YOUR USER password, and not the root account password. Please keep in mind, a substantial number of Ubuntu users are new to Linux. There is a learning curve associated with any OS and many new users try to take shortcuts by enabling the root account, logging in as root, and changing ownership of system files.
Example: Broken system via (ab)use of root by a new user
Please note: At the time of the post, this was the users' first post on the Ubuntu forums. While some might call this a "learning experience", learning by breaking your system is frustrating and can result in data loss.
When giving advice on the Ubuntu Forums and IRC, please take the time to teach "the basics" such as ownership, permissions, and how to use sudo / gksu / kdesudo in such a way that new users do not break systems
The above does state that a Ubuntu user cannot become root via 'su' command. I do not use Ubuntu nor think I ever will.
Good admin habits are something everyone who wishes to maintain a system should learn and use with caution and understanding.
I am sure you cannot do a 'ifconfig eth0 192.168.10.10' as a normal user;
Code:
$ /sbin/ifconfig eth0 192.168.10.10
SIOCSIFADDR: Operation not permitted
SIOCSIFFLAGS: Operation not permitted
But you could do;
~$ /sbin/ifconfig eth0
eth0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 84:8f:69:c4:6a:e2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
But you could list more information as a normal user;
Thank you for trying to help me but to to be honest, I don't really understand what you are saying. If I'm requesting information that does not require root or super user access nor does the user have those permissions in executing the commands, then how am I endangering the user's OS? I also don't understand what you mean by changing "paths" or "absolute paths." At this point, I'm not understanding what you feel I'm doing wrong.
Regards...
Last edited by ardvark71; 05-19-2016 at 10:21 PM.
Reason: Added wordage.
Thank you for trying to help me but to to be honest, I don't really understand what you are saying. If I'm requesting information that does not require root or super user access nor does the user have those permissions in executing the commands, then how am I endangering the user's OS? I also don't understand what you mean by changing "paths" or "absolute paths." At this point, I'm not understanding what you feel I'm doing wrong.
Regards...
I am not stating you are doing something wrong, just clarifying that usage of some system commands improperly by a normal user can be catastrophic. There are reasons for security for system commands from that user so as not to do any damage. Most Gnu/Linux do provide the means to prevent actions or at least limit permissions so that users do no damage. Just clarifying that everyone should be aware of the potential hazards done by the unknowing users.
I hope this helps to clarify what I have said. If you have been offended by my expansion of the usage then 'my apologies to you'.
I am a new one to linux. I installed ubuntu 16.04 in my laptop. Everything working fine, but my wifi not working. It is showing wifi option in the network setup along with wired connection and vpn. But it is impossible to turn wifi ON. In terminal I typed
# iwconfig
It showing wlp12s0
Also I checked softwares and updates >> additional drivers and it is showing a wifi driver.
Anyone please help me to fix it?
If ardvark71's commands don't work, try this method.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.