Linux deploy require superuser

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root default password doesn’t work — linux deploy #412

Root default password doesn’t work — linux deploy #412

Comments

I installed kali in my s6 with linux deploy but cant login as root . If i set a user in linux deploy i can login with that user but it doesnt have root permission , this user doesnt even have permissions to execute sudo . , the default root pass toor doesnt work either. I tried also choose the user in linux deploy as root but no luck. , anyone had this problem before. is there another other default root password besides toor , thanks for your help :-).
maybe it has something to do with the /etc/init.d/myscript giving an error. . anyone has suggestions for passwords to log in as root?

The text was updated successfully, but these errors were encountered:

Ei jeffreyRfox i tried before but it crashes everytime i try to start it , the only way i can login is through ssh , i will try to read the logs to see if i can find something

On Ubuntu I can’t use root either. SU asks for password, but it’s not the default. Sudo gives a setuid error. Did you guys find anything about it?

Читайте также:  Ver mac no linux

Guys!, read my issue #349 , you need to install another ROM with Android 4.2.2, 4.3 doesn’t allow Sudo by some reason, flashed CyanogenMod and it worked!

running androidx86 r-1 cannot login as root user either «toor»does not work. seems some peeps here are confused the user:»android» and the password «changeme» is to connect to the containter/gui through vnc and ssh however there is no mention about INSIDE the container to access superuser. my android is rooted so i cannot except that i need to install cyanogenmod. what is the root password user:Android
password:__________??

its NOT «toor» or «toorroot»or «meefik» or»root» or «password» or the password i set over «changeme»
and i cannot change the password without the root password

other than not being able to access root(wich means i cant seem to install anything that isnt «apt-get» this is a pretty freaking cool app. runs great and i cannot thank you enough. with i can use android as my primary and run a full linux distro on top wich means java. 👍 . in my humble opinion this project is very important to the androidx86 community because it allows the gaps between android and pc to be filled

but to be frank on android x86 netflix does not work EXCEPT inside of linux deploy so i very much am counting on this. some reason on a ubuntu install i didnt need root. but i DO prefer debian

also i tried to install alsa-common (pretty much all alsa packages and pulse audio). how do i get the sound to work??

android x86 r-1
debian
jessie
mate desktop
install type:directory
using xserver+xsdl

last update was VERY badass
thanks again.

Источник

Deployment: настраиваем пользователей

Под root-пользователем работать небезопасно, равно как и делать весь проект доступным www-data.
Кроме того, во многих веб-приложениях пользователи имеют возможность загружать свои файлы. И очень часто с такими файлами возникают конфликты, так как пишутся они под www-data:www-data, а деплоим под другим пользователем. Даже если деплоить под root, то скорее всего права на папку перепишутся и www-data потеряет доступ к нужным файлам.

Решение

Создать нового пользователя deploy с правами на коннект к серверу по ssh, доступом только к папке с проектом и возможностью изменять файлы в ./public/uploads и ./var.

Читайте также:  Linux install utf 8

Создаём на сервере пользователя deploy из-под root:

ssh root@вашсервер useradd --create-home -s /bin/bash deploy

Настроим доступ по ssh через ключи

mkdir /home/deploy/.ssh touch /home/deploy/.ssh/authorized_keys

Вставьте содержимое одного из публичного ключа своего локального пользователя в файл authorized_keys и сохраните. Вывести публичный ключ локально можно командой: cat ~/.ssh/id_rsa.pub (название ключа id_rsa.pub у вас может отличаться).

vim /home/deploy/.ssh/authorized_keys

Меняем права на более строгие

chown -R deploy:deploy /home/deploy chmod 600 /home/deploy/.ssh/authorized_keys

Определим пользователя нашего веб-сервера (в примере ниже это www-data)

ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1 > www-data

Добавляем пользователя deploy в группу www-data (группа веб-сервера)

usermod -a -G www-data deploy

Выставляем права на папку проекта

chown -R deploy:deploy /var/www/project chmod -R 0775 /var/www/project

Проверим, есть ли setfacl в системе setfacl -h и установим, если его нет. Команда для Ubuntu:

Выдадим права на папки с кэшем, логами и загруженными пользовательскими файлами

sudo setfacl -dR -m u:www-data:rwX -m u:deploy:rwX /var/www/project/var /var/www/project/public/uploads sudo setfacl -R -m u:www-data:rwX -m u:deploy:rwX /var/www/project/var /var/www/project/public/uploads

Для самого деплоймента я обычно использую Deployer c параметром writable_mode=acl.

Источник

How To Root Nexus 7 2013 In Ubuntu Linux

Place a checkmark next to “Custom Recovery” in the Nexus Root Toolkit window. Click on “Root.” Your Nexus 7 will begin the rooting process and reboot when complete. Tap on Menu after your tablet reboots to verify that “SuperSU” is listed in the App drawer. Your tablet will now be rooted.

Why should I root my Nexus 7?

Rooting frees your Android phone from the clutches of the mobile carrier where you got your phone from unless you got it unlocked. If that’s the case, rooting frees your phone from the restrictions of the Android OS. Rooting allows you to install “unofficial” and advanced versions of the Android OS.

Is TowelRoot safe?

Cons of using TowelRoot to root your Android device

After using TowelRoot, you’re temporarily exposed to a major vulnerability. . Otherwise, any app you use could gain root privileges without your permission – which poses a major security risk.

How do I get to root in Linux terminal?

  1. Open your terminal app.
  2. Type the following command: sudo su.
  3. Enter your password when prompted.
  4. From now, the current instance will be the root terminal.
Читайте также:  Astra linux initramfs ошибка

Does Linux deploy require root?

Installing Linux on Android usually requires rooting your device first. If that’s not an option for you, then the GNURoot app is right up your alley. Despite its name, GNURoot doesn’t require root access in order to run. . To deploy Linux using GNURoot, you need to grab a helper app for a specific Linux distribution.

How do I login as root in Linux?

You need to use any one of the following command to log in as superuser / root user on Linux: su command – Run a command with substitute user and group ID in Linux. sudo command – Execute a command as another user on Linux.

How do I fix Towelroot isn’t supported?

If your phone isn’t supported, when you open Towelroot and press the “Make it rain” button it says that the phone isn’t currently compatible. To change the modstrings, open the Towelroot application and tap three times “Welcome to Towelroot v3” sign.

How do I backup my Nexus 7 before rooting?

Backing Up Your Android OS

Begin by powering off your device, then press and hold both the power and volume down button to boot into TWRP. Tap Backup and tick the boxes for System, Data and Boot. Then just Swipe to Back Up to begin the backing up. That’s it!

How do I root NEX?

  1. Download CF-Root for Nexus 6 and extract it to your computer.
  2. Turn off your phone.
  3. Press and hold down Volume Down and Power buttons to boot into the bootloader mode.
  4. Connect the phone to your computer.
  5. Run the file named root-windows. bat from the CF-Root folder.
  6. You’re now rooted.

Watch Live TV Channels on Ubuntu or Linux Mint With These IPTV Applications

Live

How can I watch live TV on Ubuntu?What app lets you watch live TV for free?Is there an app to watch live TV?Does Linux Mint have a app store?How do I .

How to Install ownCloud on CentOS 8

Owncloud

How to Install OwnCloud on CentOS 8Step 1: Install Additional PHP Modules. . Step 2: Create a Database for OwnCloud. . Step 3: Download OwnCloud i.

How to Change default MySQL Data Directory in Linux

Mysql

Changing the default MySQL/MariaDB Data DirectoryStep 1: Identify Current MySQL Data Directory. . Step 2: Copy MySQL Data Directory to a New Locatio.

Latest news, practical advice, detailed reviews and guides. We have everything about the Linux operating system

Источник

Оцените статью
Adblock
detector