Page 1 of 1

Permissions

Posted: 05 Sep 2016, 10:11
by Jack
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?

Re: Permissions

Posted: 05 Sep 2016, 11:00
by Bogomips
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.

Re: Permissions

Posted: 05 Sep 2016, 13:55
by Jack
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

Re: Permissions

Posted: 05 Sep 2016, 14:11
by Bogomips
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.

Re: Permissions

Posted: 05 Sep 2016, 14:25
by Jack
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.

Re: Permissions

Posted: 05 Sep 2016, 16:07
by brokenman
You built the module as root, so guest does not own it.

Code: Select all

chown guest: firefox*

Re: Permissions

Posted: 05 Sep 2016, 16:21
by Jack
@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.

Re: Permissions

Posted: 05 Sep 2016, 20:06
by Bogomips
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.

Re: Permissions

Posted: 05 Sep 2016, 20:20
by Jack
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.