Search Debian Channel Logs

Tuesday, January 24, 2017

#debian channel featuring CodeMachine, grawity, hmuller, fgrepper, somiaj, petn-randall, and 7 others.

CodeMachine 2017-01-24 05:46:37
alright. Yes maybe. How do I know if I'm on "root" or not then?
somiaj 2017-01-24 05:47:05
open a termainl and type 'whoami'
CodeMachine 2017-01-24 05:47:25
username
CodeMachine 2017-01-24 05:47:45
so I'm never root ain't I?
somiaj 2017-01-24 05:49:13
by default you should not be running xorg (gnome) as root and a normal user, and then you only become root if you need to do something that only root can do
Johann 2017-01-24 05:49:29
~
somiaj 2017-01-24 05:49:30
debian usually gives the normal user a limited amount of permissions (controled through groups), type 'groups' to see what groups you are in
Johann 2017-01-24 05:49:32
ops sorry
CodeMachine 2017-01-24 05:50:05
When I type groups there is no root
somiaj 2017-01-24 05:50:11
the idea of 'adminstrator' account is not really a common thing, though I'm unsure what sort of things gnome neams, or what that setting you have found actually does. As a normal user it shouldnt' be able to change the groups you are in.
CodeMachine 2017-01-24 05:50:29
And when I use terminal I need to su to become root terminal. so that makes me "right", right?
somiaj 2017-01-24 05:50:33
CodeMachine: there is no root group, closest thing in debian is the 'sudo' group which gives you full access to sudo and allows (via a password) you to run anything as root
somiaj 2017-01-24 05:50:52
correct, when you type 'su' or 'su -' you become root (with using roots password)
somiaj 2017-01-24 05:50:56
sudo is another way, using your users password.
CodeMachine 2017-01-24 05:51:29
alright, so I'm never really root, only when I "su", and when I close the terminal I'm not root anymore.
petn-randall 2017-01-24 05:51:51
somiaj: There /is/ a root group (id=0)
somiaj 2017-01-24 05:52:07
correct, you shouldn't be running normal programs as root, which makes me courious what this admistrator checkbox you found actually does, because most likely you are not running it as root (unles it is using something like gksu and asking for a password to run it as root)
somiaj 2017-01-24 05:52:28
petn-randall: oh yea, duh...I should have meant it isn't common to add someoen to that group, sudo is more the group to look for.
somiaj 2017-01-24 05:53:19
because being in the 'root' group doesn't give one root powers, and I can't think of any default permissions execpt for maybe /root that one woudl gain from that group.
Digital 2017-01-24 05:54:26
heya
Digital 2017-01-24 05:54:51
what happens when an Application tries to add a user/group which already exists?
somiaj 2017-01-24 05:54:53
Digital: greetings.
abrotman 2017-01-24 05:55:04
Digital: An Applicatoin, or a package?
somiaj 2017-01-24 05:55:17
Digital: most likely recives an error, but it may be ready for such a thing and just moves on.
Digital 2017-01-24 05:55:23
abrotman: a package
abrotman 2017-01-24 05:55:36
Digital: nothing exciting, it should continue
somiaj 2017-01-24 05:56:09
Digital: it should either check for the existace before trying to add it, or nicely move on when it gets the error 'already exists'
somiaj 2017-01-24 05:56:19
if it errors out, report a bug.
jelly 2017-01-24 05:56:34
somiaj: it's a non-fatal warning for adduser and it exits with 0
jelly 2017-01-24 05:56:46
so the install scripts continue
somiaj 2017-01-24 05:56:59
ahh, I didn't look at the error code, I guess I should have
abrotman 2017-01-24 05:56:59
but if they use useradd?!?!
Digital 2017-01-24 05:57:09
for example, when there is a standard (not sudo) user account called boring-user and a package tries to add a administrative user/group called boring-user
jelly 2017-01-24 05:57:51
abrotman: why would they invent their own thing instead of stealing what all the other packages do?!
jelly 2017-01-24 05:58:08
erm, s/steal/do/
jelly 2017-01-24 05:58:39
Digital: I'm not sure '-' is a legal character for a username
jelly 2017-01-24 05:58:57
Digital: what does "an administrative user" mean?
Digital 2017-01-24 05:59:36
jelly: administrative as in sudo access
Digital 2017-01-24 05:59:46
- is a legal character
jelly 2017-01-24 06:00:31
Digital: a debian package will never add users to sudo group. What's your actual issue?
Digital 2017-01-24 06:00:47
I want to create a user/group called digital but I'm not sure if that's a good idea
jelly 2017-01-24 06:01:02
so create it, it's not reserved
Digital 2017-01-24 06:01:11
yay
Digital 2017-01-24 06:01:36
not that it is going to last, i reinstall my operating systems quite often lol
abrotman 2017-01-24 06:02:09
jelly: because .. people
jelly 2017-01-24 06:02:36
but... policy
jelly 2017-01-24 06:02:42
also laziness
x0h_eax 2017-01-24 06:06:47
what is the lightest graphic lib (x-serv,gnome,etc) that can be used by firefox?
jelly 2017-01-24 06:15:18
x0h_eax: not many firefox devs in here probably, try finding a mozilla or firefox related channel
cluelessperson 2017-01-24 06:15:30
Hey guys, I need to copy an APT repo to another server
cluelessperson 2017-01-24 06:15:36
How do you suggest I do this?
cluelessperson 2017-01-24 06:15:40
It's like 300 GB
somiaj 2017-01-24 06:15:53
x0h_eax: what do you mean by graphics lib? gnome to me doesn't sound like a graphics lib.
jelly 2017-01-24 06:16:21
cluelessperson: rsync?
cluelessperson 2017-01-24 06:16:31
jelly, That's it?
cluelessperson 2017-01-24 06:16:36
jelly, what about configuration?
jelly 2017-01-24 06:16:38
cluelessperson: I mean, what's the problem?
cluelessperson 2017-01-24 06:16:55
jelly, Don't I have to configure a service to host the apt repo?
cluelessperson 2017-01-24 06:17:08
jelly, Should I just mirror it?
jelly 2017-01-24 06:17:56
cluelessperson: if you're going to have non-local clients, then yes you'd need to make the file tree available under some protocol used by apt, be it http or ftp or something else
cluelessperson 2017-01-24 06:18:13
jelly, http, so I assume that means apache
cluelessperson 2017-01-24 06:18:15
easy so far
jelly 2017-01-24 06:18:45
are you going to update it every now and then or just make a one-off copy?
cluelessperson 2017-01-24 06:19:03
jelly, one off copy.
jelly 2017-01-24 06:19:21
then it really doesn't matter what you use as long as the copy is consistent
cluelessperson 2017-01-24 06:19:29
jelly, Production may rely on APT, so I'm hosting a mirror so I can take down the production server (for virtualization and later dissolving)
hmuller 2017-01-24 06:21:53
is there a method to noninteractively run dpkg-reconfigure using nondefault values that works?
jelly 2017-01-24 06:22:19
hmuller: which methods did you try thus far that did not work, on which debian release?
hmuller 2017-01-24 06:23:25
jelly: debian 8; used debconf-set-selections -> dpkg-reconfigure -fnoninteractive (no joy) ...
jelly 2017-01-24 06:23:40
cluelessperson: if you have control of when the source gets updated, and can fix sources.list on all the users, then you have a pretty clear situation I guess
hmuller 2017-01-24 06:24:24
jelly: also created config.dat, then DEBCONF_DB_OVERRIDE='FILE{./config.dat}' dpkg-reconfigure -f noninteractive
cluelessperson 2017-01-24 06:24:34
jelly, all the users connect to APT through our DNS. I'll redirect DNS internally to the new APT server.
hmuller 2017-01-24 06:35:41
jelly: typo in my last statement, FILE should read File
jelly 2017-01-24 06:36:48
hmuller: could be a bug maybe, can you work around it by setting the priority to real high?
martinjungblut 2017-01-24 06:37:42
Hey guys, will Debian automatically install grub-efi on EFI machines during installation?
grawity 2017-01-24 06:37:59
I think it does, yes
hmuller 2017-01-24 06:39:30
jelly: I'll give that a try
somiaj 2017-01-24 06:40:53
martinjungblut: the package will be isntalled, to actually install grub in the efi partition is a question the installer asks near the end.
somiaj 2017-01-24 06:41:04
martinjungblut: provided you booted the installer in efi mode
jelly 2017-01-24 06:41:34
martinjungblut: debian 8 installer tries to guess whether it needs a UEFI or BIOS setup, if it guesses wrong on your system that's a bug
fgrepper 2017-01-24 06:42:20
i have created an SMB share. I can connect to it from a windows client but I cannot see files within it (I can see directories)
martinjungblut 2017-01-24 06:42:22
thanks for the information!
fgrepper 2017-01-24 06:42:54
i ran chmod 777 on the share directory and parent directory, yet still cannot create or view files from windows...any thoughts?