Permissions

Technical issues/questions of an intermediate or advanced nature.
Post Reply
Jack
Contributor
Contributor
Posts: 1083
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Permissions

Post#1 by Jack » 05 Sep 2016, 10:11

When I build using brokenman script and then try to upload it to MediaFire I have change the permissions. I'm building it in guest but in a Terminal here is what I am doing.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# update-firefox
After it is built I type md5sum firefox-49.0b10-x86_64-1 .xzm then I try and move firefox-49.0b10-x86_64-1.xzm to MediaFire but I found out it won't let me. The permission is not set right there is a padlock on firefox-49.0b10-x86_64-1.xzm. The only way I can remove it is log out of guest and log in as root and change it and then log back in to guest and upload the file. Now here is the question can all of this be done in guest if yes how?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Re: Permissions

Post#2 by Bogomips » 05 Sep 2016, 11:00

Do

Code: Select all

ls  -lh  firefox-49.0b10-x86_64-1 .xzm
sudo chmod a+r firefox-49.0b10-x86_64-1 .xzm
If this does not work, do

Code: Select all

sudo chmod a+rw firefox-49.0b10-x86_64-1 .xzm
and post output here.
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

Jack
Contributor
Contributor
Posts: 1083
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: Permissions

Post#3 by Jack » 05 Sep 2016, 13:55

Here is the output.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# mc

root@porteus:/home/guest/Downloads# ls
google-chrome-53.0.2785.92-x86_64-1.xzm
root@porteus:/home/guest/Downloads# ls  -lh  firefox-49.0b10-x86_64-1 .xzm
/bin/ls: cannot access 'firefox-49.0b10-x86_64-1': No such file or directory
/bin/ls: cannot access '.xzm': No such file or directory
chmod: cannot access 'firefox-49.0b10-x86_64-1': No such file or directory1 .xzm 
chmod: cannot access '.xzm': No such file or directory
root@porteus:/home/guest/Downloads# sudo chmod a+rw firefox-49.0b10-x86_64-1 .xzm
chmod: cannot access 'firefox-49.0b10-x86_64-1': No such file or directory
chmod: cannot access '.xzm': No such file or directory
root@porteus:/home/guest/Downloads# 
Here is two screenshot.
Image
Image
This is what it should look like. To upload to MediaFire.
Image
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Re: Permissions

Post#4 by Bogomips » 05 Sep 2016, 14:11

Asked about firefox, but firefox not in the directory. So nothing doing until firefox put in directory. Needed in order to show how to do what you want as guest.
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

Jack
Contributor
Contributor
Posts: 1083
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: Permissions

Post#5 by Jack » 05 Sep 2016, 14:25

Those 2 files are in the same directory.
Image
Image
Hope you understand now but I keep everything in the same directory. Picture might not look the same I have 2 backup on two drives sdb1 and sdb2.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5506
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Permissions

Post#6 by brokenman » 05 Sep 2016, 16:07

You built the module as root, so guest does not own it.

Code: Select all

chown guest: firefox*
How do i become super user?
Wear your underpants on the outside and put on a cape.

Jack
Contributor
Contributor
Posts: 1083
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: Permissions

Post#7 by Jack » 05 Sep 2016, 16:21

@brokenman

So you can run your scripts as guest? I just try here is the output.

Code: Select all

guest@porteus:~$ update-firefox

 Only root can run this. 
guest@porteus:~$ 
All I want to do is upload to MediaFire to share the files.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Re: Permissions

Post#8 by Bogomips » 05 Sep 2016, 20:06

brokenman wrote:You built the module as root, so guest does not own it.
Even if it is built as root, imo it should have read permission. This would allow mediafire to copy it. That was why requested to change mode in case no read (and execute?) permission for all, and requested posting of the output.
Jack wrote:Now here is the question can all of this be done in guest if yes how?
Bogomips wrote:Do

Code: Select all

ls  -lh  firefox-49.0b10-x86_64-1 .xzm
sudo chmod a+r firefox-49.0b10-x86_64-1 .xzm
If this does not work, do

Code: Select all

sudo chmod a+rw firefox-49.0b10-x86_64-1 .xzm
and post output here.
Now I was trying to answer your question to do this as guest. I did not ask you to do the commands as root, because we are trying to do this as guest!
Jack wrote:Here is the output.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# mc

root@porteus:/home/guest/Downloads# ls
google-chrome-53.0.2785.92-x86_64-1.xzm
This shows there is only one file there.
Jack wrote:After it is built I type md5sum firefox-49.0b10-x86_64-1 .xzm then I try and move firefox-49.0b10-x86_64-1.xzm to MediaFire
I copied what you typed, but there was a blank in the name, but did not matter as firefox was not in the Download directory.

So if there is firefox in your current directory, then using corrected instructions:

Do

Code: Select all

ls  -lh  firefox-49.0b10-x86_64-1.xzm
sudo chmod a+r firefox-49.0b10-x86_64-1.xzm
If this does not work to upload to mediafire, do

Code: Select all

sudo chmod a+rw firefox-49.0b10-x86_64-1.xzm
and post output here.
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

Jack
Contributor
Contributor
Posts: 1083
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: Permissions

Post#9 by Jack » 05 Sep 2016, 20:20

You wrote this but did not matter as firefox was not in the Download directory. now at the picture and look at the date.
Image
It is there.

Let just forget about all of this and I will do it the I been doing it. This matter is close.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Post Reply