Permissions issue, i dont have them in gnome, but command line ok
Hi, i have
"sshfs" folder Quote:
-rw------- 1 amnesia root 0 Feb 11 10:39 d then from gnome interface, i try to write some text into the file, but it tells me i dont have rights. my username is amnesia but when i do: echo "test" > d from command line, data is written, whoami: amnesia what i want to do is to be able to write into the newly created file in gnome interface, without everytime changing some permissions.. do i need to anyhow chown or chmod the sshfs folder, how please? |
Login as amnesia and check what groups is your account assigned to.
Quote:
|
Quote:
Code:
amnesia@amnesia:~$ whoami |
It can be seen, you are issuing command in shell as root, so go figure why write permissions are allowed.
Type: Quote:
|
Quote:
Quote:
|
Go one level up from the sshfs directory and issue as root
Quote:
This will make you owner of the directory, including sub-directories. After this try to create there some files using GNOME. Keep in mind that you won't open any file from the d directory as it has no execute permission. If you wanna achieve that use chmod. |
thanks, i want to try, it i just have question, that folder is an mounted folder from remote server, it is folder of the "root" of that server, so should i really try changing amnesia:amnesia -R ?
im running that command now, its around 10 minutes, not ready yet, its like 400 files i hope :/ |
update: 703 files, 65 directories, 450MB of data , took around 15 minutes..
BUT NOT SOLVED Editting&saving of the "d" file now works, but newly created file keeps old permissions (amnesia:root) Quote:
Quote:
|
Quote:
Instead, do some singular chmoding on files that lack execute and read permissions. Quote:
You can easily revert it, by Quote:
|
this is new file created permissions
http://i.snag.gy/t0N5j.jpg the permissions from terminal looks like: -rw------- 1 amnesia root 0 Feb 11 15:27 new --- This issue looks related (only its for Mac): https://groups.google.com/forum/#!to...se/kQrb4cVu3jQ (SSHFS and write permissions ?) So i assume i cant fix these permissions to work properly, and its sshfs issue? |
Quote:
|
Yes, only that i cant write into newly created file when working in GNOME interface.
-rw------- 1 amnesia root 0 Feb 11 15:27 new |
You're right. What did you use to mount the share?
|
I might be a bit off here, but I'd say it sounds strange that your user's group is "root" and it does not have the "users" group in its group list...
If you create a file elsewhere via GNOME what are the permissions? (I'd like to see who GNOME is running as, and in what group). Are you logging into GNOME as "amnesia" as well? When you start the terminal, did you `su` to being a different user? And yes, what command did you use to mount that share? (Also, what are you doing mounting the folder of your other server's root user folder?) |
All times are GMT -5. The time now is 06:56 PM. |