[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
no root/sudo access
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 81
Thread images: 11
I'm not able to access the root folder or use sudo in debain jessie even if i enter the correct password. help?
>>
Should have installed ubuntu , op.
>>
>>55219103
Are you sure it's the correct password? Use the password for system1, not root
>>
It's not the correct password.
>>
>>55219103
boot from cd
change sudoers
>>
>>55219132
>>55219124
It's the correct password.

su words, sudo doesn't.
>>
>>55219147
can't change sudoers, it shows in ls but isn't shows if i use cd.

>>55219189
*works
>>
>>55219200
>can't change sudoers, it shows in ls but isn't shows if i use cd.
ok whatever
edit pwd file or
use chroot and just chpwd root or visudo
>>
Also, sound isn't working. I,ve installed everything, pulseaudio works fine.

>>55219242
visudo works, what do i edit?
>>
>>55219256
The motherboard is MSI B150M
>>
>>55219256
If you have two sound cards you need to set the default one by pacmd
>>
Maybe you tried this already but in case you haven't:
$ su
# cd /etc
# nano sudoers
change sudoers appropriately
(reboot?)
>>
>>55219256
apt-get install alsa-utils
alsamixer
then press M
>>
>>55219256
add system1 to it
or better
usermod -a sudo system1
>>
>>55219275
I don't have two sound cards, only the motherboard has onboard sound. pulseaudio shows everything plugged in even when nothing is.

>>55219278>>55219275
>change sudoers appropriately

>>55219279
>>55219287
trying
>>
>>55219304
About sudoers:
https://www.youtube.com/watch?v=a7LAk2FpnMg
>>
>>55219279
apparently, i have two sound cards.
>>
>>55219322
nope, pacmd says there's one.

http://pastebin.com/SHGZ3Szu

Pic related is screen with HDA Intel PCH selected. Nothing is plugged in.
>>
>>55219103
Just use su.
>>
>>55219371
I know, su is working but sudo doesn't, and i don't have root access. I tried to install aplemoon but failed because it won't take my root password.

>>55219287
I'm a noob, but nothing happened when i typed that in.
>>
Apparently you aren't a member of sudo group. Either add your user as one, or just type
system1 ALL=(ALL:ALL) ALL
after the root specification.
>>
So, i unmuted everything in the intel option and it still isn't working.
>>
This is the file
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d
>>
>>55219469
on the end of the sudoers file add
<user> ALL=(ALL) ALL
in place of <user> you would put in your username then save the file then log out of superuser or "su" then sudo will work. Was setting up Debian with a much more complicated setup with Openbox than a manual XFCE install, always do this if sudo isnt installed
>>
>>55219469
<user> then two tabs then ALL=(ALL) then only one tab then ALL
>>
>>55219535
>>55219514
I did that, It's still not working.
>>
>>55219552
try putting the text directly under the "#includedir /etc/sudoers.d" so it recognizes it, reason it doesnt work is because it is another space below the text. Personally if you are a beginner I would just start out with Xubuntu, starting off with Debian which is a poweruser OS, that would probably ruin your first impression on GNU/Linux.
>>
>>55219430
pacmd set-default-sink 0
>>
>>55219631
It still isn't working.

>>55219639
It says sink zero not found.
>>
>>55219800
You mean:
``Time Sink - you are a Zero''

>/g/ - Tech Support

>>>/wsr/
>>>/g/sqt
>>
>>55219818
>>>/trash/
>>
>>55219831

As root: usermod -a -G sudo system1
As user: newgrp sudo

If it doesnt work post output of 'id'
>>
>>55219831
That is where all the advice is coming from found in this thread.

>>>/g/flt
>>
>>55219103
"noob installs debian" the post
>>
>>55219849
not working.

uid=1000(system1) gid=27(sudo) groups=27(sudo),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev),110(lpadmin),113(scanner),119(bluetooth),1000(system1)
>>
Okay, now this is happening when i try to launch vlc.

system1@deb1:~$ vlc
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
Failed to create secure directory (/run/user/1000/pulse): Permission denied
[00000000014ae0b8] pulse audio output error: PulseAudio server connection failure: Connection refused
Failed to create secure directory (/run/user/1000/pulse): Permission denied
>>
>>55219898

newgrp system1
>>
>>55219898
You've fucked up your entire system listening to these dipshits.


Just reinstall.
>>
>>55219910
still not working.

uid=1000(system1) gid=1000(system1) groups=1000(system1),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),110(lpadmin),113(scanner),119(bluetooth)

>>55219915
I've already have, twice. in the last 24 hours.
>>
>>55219925

You could try to change the line to: %sudo ALL=(ALL) ALL

Otherwise I'm out of ideas
>>
>>55219925
Then stop trying.
>>
>>55219939
IT FUCKIGN WORKED
But it worked with my user passwd, and not the root pasword
>>55219943
I just ned to configure the audio now
>>
>>55219966

sudo is supposed to work with your user password
>>
>>55219966
lol, it is the same everytime. is this some homework for a Psych 101 class or something.
>>
>>55219980
I thought it granted root acces, so it required the root password?

Anyway, I used both root and user passwords every time, and this is the only time it worked.

>>55219986
>>lol, it is the same everytime.
nope
>>
>>55220000

The idea is root changes the file to give users special access to some commands with their own password. (If the users have the root password there isn't much point to giving them commands to run as root since they can su to root anyway)
>>
1024x768

Is the future weird and scary to you?
>>
i think you're not meant to use nano to edit the sudoers file but sudoedit instead? cause if you fuck up the file you can fuck up your permissions completely and wont be able to do shit

or something
like that
>>
Should have installed Ubuntu, op.
>>
>>55220016
make sense

>>55220036
nope

>>55220039
nothing's happened yet.

>>55220043
lol
>>
>>55220051
Remove Debian and install Gentoo.
>>
i still can't get the onboard audio to work, help?

Also how do I install themes? Pic relted is what I get. i followed instructions from the xfce themes wiki.

>>55220069
>memes
>>
>>55220119
Reboot and make sure sudo and permissions are working. Then, check your audio.
>>
>>55220161
welp, I rebooted and now it just shows some hex numbers on screen.

RIP, reinstalling.
>>
>>55220119
also
mkdir -p ~/.local/share/themes
Mkdir creates a directory, the -p flag tells it to create the parent directories if not found (w/o -p it'll error if there's no ~/.local/share/, w/ -p it'll make ~/.local/share)
>>
>>55219389
because that fuckturd fucked that command up
usermod -a -G sudo system1

Do this as root.
>>
>>55220364
Keep updating the thread.
>>
>>55219189
su asks for the password of the user you are changing to, in this case the root password. sudo asks for the current user password.
Nothing else to see here.
>>
>>55220443
yep, I'm reinstalling my system and will update.
>>
>>55220451
I tried using sudo with both user and root passwords, and none worked initially.

It worked fine after

>>55219939
>>
>>55220513
If it fails again you should consider other distros. There are better options than Debian in my opinion.
>>
okay, OP here.

Everything's working now except the sound.
>>
>>55220861
Log in as root and check sound.
>>
>>55220895
Sound's not working.

aptitude shows some suggestions, so I'm downloading those now.
>>
>>55220942
I need more info. Copy and paste the output of
#lspci | grep audio
and alsa config too.
>>
>>55221002
the first command did nothing/ Literally nothing happened.

output for the second
http://pastebin.com/W6r7EKMC

Also, now pulseaudio is detecting when a jack is plugged in, So I gues that's an improvement.
>>
>>55221002
the first command did nothing/ Literally nothing happened.

output for the second
http://pastebin.com/W6r7EKMC

Also, now pulseaudio is detecting when a jack is plugged in, So I gues that's an improvement.
>>
>>55221114
Uhhh... I have to leave 4chan for now. Read this page or something: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting
Good luck.
>>
File: tumblr_m7x0o4x0231rbmbw5o1_500.jpg (83 KB, 456x386) Image search: [Google]
tumblr_m7x0o4x0231rbmbw5o1_500.jpg
83 KB, 456x386
>not using visudo to edit your sudo file
>>
>>55219370
as someone said press m
they are muted
>>
>>55221478
I already unmuted them, now all i get is static even if i play anything. At least ther's some output

>>55221430
>not reading the thread I already did it, senpai
>>
>>55219103
hi, pretty sure debian is not prepared to work with sudo by default. did you already created the group wheel? did you already add your user to the wheel group? do you created the
%wheel ALL=(ALL) ALL
line in the sudoers file?

Also regarding the sound, debian doesn't ships proprietary firmware by default, i think that may be your problem.
https://wiki.debian.org/Firmware
>Some of these firmware are free and open-source, and some of them are non-free, which means that you need to add the non-free and contrib components to /etc/apt/sources.list; see sources.list(5) and Debian archive basics (Debian Reference) for more information.

hope this helps.
>>
>>55221640
Try playing sound with aplay, it only plays wav files though. Try finding something with "find /usr/share -name '*.wav'" and play with "aplay file.wav" how's the sound then?
>>
>>55222223
fucking almost...
>>55222222
>>
>>55219103
You need to be in the sudoers file.
>>
>debian
not even once
>>
>>55221739
The sudo group is the debian equivalent to the wheel group, as you can see in that sudoers file. The first normal user is added to the sudo group by default.
>>
>>55220593
>inb4 arch
Don't even.

>>55220513
You messed something up op.
>>
>>55224146
I know, i edited the file with visudo and now I have root access. the problem is that sound isn't working.

>>55224157
why

>>55224190
apparently


vlc refuses to play video, but I can watch youtube in my browser. All I get now is static from my headphones, and playing a file down't seem to affect it.
>>
>>55219966
%wheel
>>
cat /var/log/* | aplay
>we merzbow now
Thread replies: 81
Thread images: 11

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.