permissions...

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
sedstar
Black ninja
Black ninja
Posts: 35
Joined: 29 Jul 2015, 19:59
Distribution: 32bit xfce
Location: PA-USA

permissions...

Post#1 by sedstar » 31 Jul 2015, 15:11

okay, so i got a USB drive, and got it formatted as ext4... for linux use...

its practically useless. Permissions.

i thought when i was logged in as "root", i was like a GOD... you know, I can do whatever i WANT to... the system even displays the cool warning disclaimer "caution... you are ROOT, you could damage something"...

root is a nice CONCEPT? But it doesnt hold a candle to these permissions, lol... i managed to get a few things onto the USB i wanted to, by flitting around between several live LIN versions... the change permissions menus are blocked out for me too...

how in the &^%$ can i possibly not "be the owner of" my own USB drive, lol...

===========================================================

what menu option lets me do whatever i WANT to... i thought root gave me that... :wall:

beny
Full of knowledge
Full of knowledge
Posts: 729
Joined: 02 Jan 2011, 11:33
Location: italy

Re: permissions...

Post#2 by beny » 31 Jul 2015, 15:25

hi you can use this menu to login in init 3 so root toor ,and your changes saved,the gui menu login in init 4 and default user is guest,btw you can use console: su and root password if you want and guest become root.
LABEL text
MENU LABEL Text mode
KERNEL vmlinuz
APPEND initrd=initrd.xz 3 changes=/porteus
TEXT HELP
Run Porteus in text mode and
start the command prompt only
ENDTEXT

sedstar
Black ninja
Black ninja
Posts: 35
Joined: 29 Jul 2015, 19:59
Distribution: 32bit xfce
Location: PA-USA

Re: permissions...

Post#3 by sedstar » 31 Jul 2015, 17:22

(i honestly didnt understand your answer)


uhm... I'm ALREADY root...

since i am ROOT, why "cant" i change permissions of my USB drive let me use my own USB drive?

i thought when i was logged in as root, i was able to do anything. I cant even copy and paste files on my own USB drive, lol...

User avatar
Ed_P
Contributor
Contributor
Posts: 3216
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: permissions...

Post#4 by Ed_P » 31 Jul 2015, 19:10

An ext4 problem??
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2562
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: permissions...

Post#5 by Bogomips » 31 Jul 2015, 19:31

Sometimes had that problem myself. Could not do anything with a file on the usb drive, until one day used a file manager, which seemed to do the trick. But that was only one file. Only other thing I can think of is that you do not have write permission, a problem which I recently met. Then as root open terminal and do the following:
  1. Stick in the usb
  2. Code: Select all

    fdisk -l
    Gets device name. In my case /dev/sdb1
  3. Code: Select all

    umount /dev/sdb1    # If error message comes up, ignore and continue.
    mkdir usb
    mount /dev/sdb1 usb
    (using your usb device name)
  4. Check permission of USB like so:

    Code: Select all

    guest@porteus:~$ ls -ld usb
    drwxr-xr-x 17 root root 16384 Jan  1  1970 usb/
    beginning with 'drwx'
  5. Change permission for all files:

    Code: Select all

    chmod -R u+w usb/*
    umount usb
Permission now changed to write, so should be able to write to all files on usb. 8)

Should at least eliminate any read permission problem. Re-insert usb and check.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
francois
Contributor
Contributor
Posts: 5000
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: permissions...

Post#6 by francois » 31 Jul 2015, 21:12

@sedstar:
You got root from guest mode in command line. You booted root directly with the login cheatcode login=root. What do you mean you are root?
Voltaire: Le mieux est l'ennemi du bien.

sedstar
Black ninja
Black ninja
Posts: 35
Joined: 29 Jul 2015, 19:59
Distribution: 32bit xfce
Location: PA-USA

Re: permissions...

Post#7 by sedstar » 01 Aug 2015, 10:06

okay...

when i boot (graphic or RAM) i am login=root...

i thought that made me "root" and i "owned" everyhing everywhere... just not my USB, i guess, lol.

=======================================

on other distros?

i see examples people saying to go to terminal... and launch file manager with sudo or gksudo... making a file manager window with "all access".

i did this in Zorin with some success, although i see some error messages even though it worked...

============================================

if anyone wonder what i am doing? i am trying to do "easy2boot" multiple distro's on one big USB thumb drive...

I can easily accomplish it in WINdoze... but only with NTFS or FAT32... i am trying to do it in linux, with USB formatted for ext4 or now ext2... my main impediment is permissions, on both the zorin-downloaded zip file, and the USB drive itself...

for what its worth? porteus is the only distro i have any need to use ext2 or ext4 for (easy save option).... everything else the other distros seem happy in fat or ntfs... I am just using this as an exercise to get more used to using LINUX in general.

sedstar
Black ninja
Black ninja
Posts: 35
Joined: 29 Jul 2015, 19:59
Distribution: 32bit xfce
Location: PA-USA

Re: permissions...

Post#8 by sedstar » 01 Aug 2015, 10:09

"sudo thunar" from the terminal window seems to be working...

sorry for being a total newb, lol...

Post Reply