Choose style:

Author Topic: Shared /DATA partition permissions.  (Read 2407 times)

0 Members and 1 Guest are viewing this topic.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26082
  • Karma: 2842
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Shared /DATA partition permissions.
« Reply #15 on: February 20, 2017, 07:19:28 pm »
I stand corrected :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Shared /DATA partition permissions.
« Reply #16 on: February 20, 2017, 07:20:26 pm »
You're probably lucky that didn't go through, as it would have meant you no longer owned your own /home/andy folder and config files.
No.

Code: [Select]
man usermod

Quote
   -u, --uid UID
           The new numerical value of the user's ID.


           This value must be unique, unless the -o option is used. The value must be non-negative.


           The user's mailbox, and any files which the user owns and which are located in the user's home directory will have the file user
           ID changed automatically.


           The ownership of files outside of the user's home directory must be fixed manually.

This changing IDs is totally new territory for me.  It's both frustrating and interesting.  I'm going to have to think about how to attack this, with the help of good ol' YouTube tutorials  ;).  This is why I'm making any modifications over on the the OBRevenge OS side.  it's only there as a test OS.  I don't care if it all goes pear shaped there  ;D.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26082
  • Karma: 2842
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Shared /DATA partition permissions.
« Reply #17 on: February 20, 2017, 07:24:43 pm »
Does obrevenge have an active "root" account ?

What I mean is .. can you log off as "andy", then Ctrl+Alt+F3 and log onto the console as "root" ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Shared /DATA partition permissions.
« Reply #18 on: February 20, 2017, 07:44:04 pm »
Does obrevenge have an active "root" account ?

What I mean is .. can you log off as "andy", then Ctrl+Alt+F3 and log onto the console as "root" ?

When I created the user account during installation, I was given the option to use my user account password as my "root" password.  I chose this.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26082
  • Karma: 2842
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Shared /DATA partition permissions.
« Reply #19 on: February 20, 2017, 08:09:35 pm »
Well the only two ways I can see to do this then is either

a) create another account in OBR, give it sudo privileges .. log onto it, then use that account to change the uid of the andy account.

or

b) Figure out how you boot into single user mode (a root terminal) in OBR/Arch .. then change the uid of andy.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Shared /DATA partition permissions.
« Reply #20 on: February 20, 2017, 08:45:45 pm »
Well the only two ways I can see to do this then is either

a) create another account in OBR, give it sudo privileges .. log onto it, then use that account to change the uid of the andy account.

or

b) Figure out how you boot into single user mode (a root terminal) in OBR/Arch .. then change the uid of andy.

I'll have a tinker around with this later this morning.  It'll be a good exercise.  You never know, I might learn something  :)).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline ColonelPanic

  • nOOb
  • *
  • Posts: 22
  • Karma: 4
    • View Profile
    • Linux Linx 2016
  • Peppermint version(s): 7
Re: Shared /DATA partition permissions.
« Reply #21 on: February 20, 2017, 11:25:38 pm »


I'm back. I had to take a break to get my Minimum Daily Requirement of Vitamin T... (Tequila)
What version of OBRevenge OS do you have? (regarding log in to root shell)
AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Shared /DATA partition permissions.
« Reply #22 on: February 21, 2017, 04:46:55 am »


I'm back. I had to take a break to get my Minimum Daily Requirement of Vitamin T... (Tequila)
What version of OBRevenge OS do you have? (regarding log in to root shell)

Hahah, I understand :))!!  The OBRevenge OS version is:
Code: [Select]
Arch Linux 4.9.9-1-ARCH (tty2)
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline ColonelPanic

  • nOOb
  • *
  • Posts: 22
  • Karma: 4
    • View Profile
    • Linux Linx 2016
  • Peppermint version(s): 7
Re: Shared /DATA partition permissions.
« Reply #23 on: February 21, 2017, 07:15:47 am »

 Well, I guess "What version of OBRevenge OS do you have?" turns out to be a dumb question when only one version exists...  ???
 
 You can try to get to a tty3 console with Ctrl+Alt+F3, as PCNetSpec suggested. Or you can press e (for Edit) in the Grub menu, and append "rw systemd.unit=multi-user.target" to the line that starts with "linux" in place of "quiet splash" (if that is there). Then press F10 to boot. That will take you to a root shell where you can enter the usermod commands (no "sudo" needed).
 
 There is an alternative to those 2 options. Boot into Peppermint and enter these commands in a terminal.
NOTE! Here I am assuming that your OBRevenge OS root partition is /dev/sda2 - just a wild guess. Change that to the actual OBRevenge OS root partition designation.

 Mount the OBRevenge OS root partition at /mnt:
 
Code: [Select]
sudo mount /dev/sda2 /mnt
Code: [Select]
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
Code: [Select]
sudo chroot /mnt
The prompt will change to a root prompt.
 Enter the usermod commands (no "sudo" required).
 
Code: [Select]
usermod -u 1000 andy
Code: [Select]
groupmod -g 1000 andy
Code: [Select]
usermod -g 1000 andy

 CTRL-D to exit chroot
 CTRL-D to exit the terminal
« Last Edit: February 21, 2017, 07:17:40 am by ColonelPanic »
AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI

Offline ColonelPanic

  • nOOb
  • *
  • Posts: 22
  • Karma: 4
    • View Profile
    • Linux Linx 2016
  • Peppermint version(s): 7
Re: Shared /DATA partition permissions.
« Reply #24 on: February 21, 2017, 07:27:58 am »
Is your OBRevenge OS set up with a separate /home partition?


Good luck. I will be scarce around these parts for the next few weeks. I have a mountain of real-world work facing me...
« Last Edit: February 21, 2017, 07:44:57 am by ColonelPanic »
AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Shared /DATA partition permissions.
« Reply #25 on: February 21, 2017, 05:36:08 pm »
Is your OBRevenge OS set up with a separate /home partition?


Good luck. I will be scarce around these parts for the next few weeks. I have a mountain of real-world work facing me...

Sorry, I didn't get back sooner.  It's been a stupid busy day here too.  My laptop had two drives, an SSD for my distros and a HDD for my /DATA and swap space.  Yeah, OBRevenge OS has separate /home partition.  I alway run a fdisk -l check before messing with partitions.   In my early days of using dd, it bit me on the arse/ass big time; never again though  ;).   OBRevenge OS is on /dev/sda7, (/root) and  /dev/sda8, (/home):
Code: [Select]
Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x92fd009f

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            4094 234441647 234437554 111,8G  5 Extended
/dev/sda5            4096  41947455  41943360    20G 83 Linux
/dev/sda6        41949184  77600767  35651584    17G 83 Linux
/dev/sda7  *     77602816 119545855  41943040    20G 83 Linux
/dev/sda8       119547904 155189247  35641344    17G 83 Linux


Disk /dev/sdb: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000795af

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sdb1             2048 1936748543 1936746496 923,5G 83 Linux
/dev/sdb2       1936748544 1953523711   16775168     8G 82 Linux swap / Solaris
andy@andy-Latitude-E6410 ~ $
   
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.