LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 06-05-2016, 01:02 AM   #1
Krope
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Rep: Reputation: Disabled
Question New User


Hi there,
I installed 4MLinux on my old computer and added a new user following the instructions I found in the forum.
@zk1234 mentioned '...but you would also have to grant privileges to this new user.'

Now I have the problem I have the user but I can't start XWindows. I couldn't find any helpful information which group the user should in or how I change the privileges and which.

Which privileges have I to assign to a user that he can start XWindows and can us the common software?

Thank you in advance for your help.

Last edited by Krope; 06-05-2016 at 01:03 AM.
 
Old 06-05-2016, 01:43 AM   #2
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 591

Rep: Reputation: 129Reputation: 129
Welcome !

4MLinux is probably the most advanced distro using Busybox as its init and it is designed to be run as root. You must setup a strong password for root (the password like "root" or "1234" is a very bad idea :-).

In many places 4MLinux creates system users for you. For example, Chromium is started by the following script:
Code:
#!/bin/ash
#
#
 rm -fr /opt/chrome
 zk.sh /opt/chromium/addon_debian-libs.tar.xz >/dev/null 2>&1
 rm /opt/chromium/addon_debian-libs.tar.xz >/dev/null 2>&1
 mkdir /dev/shm 2>/dev/null
 if [ $(cat /etc/rootfs) = /dev/ram0 ]; then
   /opt/chromium/chromium -no-sandbox -user-data-dir=$HOME/.chrome --ppapi-flash-path=/opt/chromium/libpepflashplayer.so $@
   else
   chmod -R 755 /opt/chromium
   for i in bin dat html js pak png svg; do
     chmod -R 644 $(find /opt/chromium/*.$i 2>/dev/null) 2>/dev/null
     chmod -R 644 $(find /opt/chromium/*/*.$i 2>/dev/null) 2>/dev/null
     chmod -R 644 $(find /opt/chromium/*/*/*.$i 2>/dev/null) 2>/dev/null
     chmod -R 644 $(find /opt/chromium/*/*/*/*.$i 2>/dev/null) 2>/dev/null
   done
   chown root.root /opt/chromium/chrome-sandbox
   chmod 4755 /opt/chromium/chrome-sandbox
   chmod 666 /dev/null
   chmod 666 /dev/urandom
   chmod 666 /dev/snd/*
   chmod 666 /dev/ati 2>/dev/null
   chmod 1777 /tmp
   chmod 666 /tmp/*
   chmod 1777 /dev/shm
   deluser chrome 2>/dev/null
   adduser -D chrome
   chmod 1777 /root/Downloads
   rm /home/chrome/Downloads 2>/dev/null
   ln -s /root/Downloads /home/chrome/Downloads
   mv /home/chrome/.config/google-chrome /home/chrome/.config/chromium 2>/dev/null
   if [ x$@ = x ]; then
     su -s /opt/chromium/chromium -c --ppapi-flash-path=/opt/chromium/libpepflashplayer.so chrome &
     else
     su -s /opt/chromium/chromium -c $@ chrome &
   fi
 fi
90% of the code above is to make your web browser secure.

.
 
Old 06-05-2016, 02:15 AM   #3
Krope
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zk1234 View Post
Welcome !

4MLinux is probably the most advanced distro using Busybox as its init and it is designed to be run as root. You must setup a strong password for root (the password like "root" or "1234" is a very bad idea :-).

.
Does it mean I should use another distribution if I want it to use it as a normal user and not as root?

By the way I always use strong passwords and I don't reuse them
 
Old 06-05-2016, 02:16 AM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 591

Rep: Reputation: 129Reputation: 129
Yes.
 
Old 06-05-2016, 02:17 AM   #5
Krope
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zk1234 View Post
Yes.
Thank you.
That saves me a lot of time.

Maybe it would be good if you add this information at the 4MLinux web page.
 
Old 06-06-2016, 05:46 AM   #6
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 8 Stable (Jessie)
Posts: 1,426

Rep: Reputation: 257Reputation: 257Reputation: 257
Wink

Hey Krope, welcome to LQ land.
 
Old 06-06-2016, 06:04 AM   #7
Krope
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
@LinusStallman
Thank you for your welcome but it looks like it was a short visit.
I uninstalled 4MLinux and installed Kubuntu. It is running on the computer and does the job. Internet and LibreOffice.
 
Old 06-06-2016, 11:05 AM   #8
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 591

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by Krope View Post
Thank you.
That saves me a lot of time.
You're welcome! Please mark this thread as solved.

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure sudoers in CentOS 5.10 for a user to run a script owned by another user as that user ripelivejam Linux - Newbie 2 12-22-2015 02:02 PM
[SOLVED] how to change "-bash-4.1$ "to regular user mood user user@ mhsahkir Linux - Newbie 6 03-31-2015 12:39 PM
How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) jsaravana87 Linux - Server 1 10-02-2012 08:49 AM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 12:53 AM


All times are GMT -5. The time now is 12:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration