You are not logged in.
Hi everyone
let's say I want to copy a folder to /etc/
the problems is my user can't copy files anywhere other then it's home it doesn't even have access to any file or folder other then home.
on the other hand I can use root to view and copy or access but the files that root creates or copies are only for root , I mean other groups or users can't access them .
I tried changing permissions on files ( chmod , chown) but sometimes it takes a lot of time .
can you tell me how I can give my own user those permissions ?(permission of copying file to a folder like /etc/ or creating a file in there )
is there a way to change root's default setting so when i create something with root that file or folder be accessible for others automatically ?!
sorry if my questions are dumb ![]()
--N3mo
Last edited by N3mo (2012-11-16 16:49:43)
Offline
sorry if my questions are dumb
Yes it is dumb ! ![]()
J/K
Dont try to do that . It is for your own safety and security.
Why do you want to have write permission on /etc ?
EDIT: See this for some information on why it is like that
http://www.tuxfiles.org/linuxhelp/filepermissions.html
Last edited by illusionist (2012-11-15 14:51:17)
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
Offline
@foppe
Sudo may not be the correct tool for him. It will still create the file/folder with root permission and he wants to have read/write permission for his user.
can you tell me how I can give my own user those permissions ?(permission of copying file to a folder like /etc/ or creating a file in there )
is there a way to change root's default setting so when i create something with root that file or folder be accessible for others automatically ?!
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
how about changing group of /etc to user and adding write permission for user group
another method is using sticky bit like /tmp
Offline
@illusionist
well...I can't access my themes,I can't access my downloaded packages , I can't even see /etc or any other folder
it's really bad
my safety and security is a liitle too much
@foppe
I tried sudo illusionist is right about it ![]()
about lshell I have no idea what that is but I will check it out
@rk700
thx !
it actually worked , now I see what's in those folders and copy new staff and for old ones...well I guess there is no other way then changing premission or sudo
I change premission of 37 files but I didn't think of changing the permission of folder before I copy thing in it !
main problem is solved...!
but still can we change the default settings of root !?
thank you for your replies ![]()
Last edited by N3mo (2012-11-16 16:53:57)
Offline
You can indeed do that. I have no intention of telling you how.
What you are trying to do is dangerous and, frankly, idiotic. I am sure that you are no idiot but your strategy is idiotic. (Smart people often do dumb things.)
If you insist on doing this, you can do it. But you should learn about the security system you are disregarding so that you know the risks. If you do that, you will know how to run those risks if you wish.
What packages are you downloading? Do you mean pacman's cache? Why do you want your user to have write access there?
Note that apart from the general idiocy of this strategy, it will also prevent some programmes from working at all because some of them check for sane permissions and refuse to run if they find the permissions are insane.
I don't even understand why you want to change root's settings. If you are working as root anyway, why do you also want your user to have access?
You can keep themes etc. in your home directory in appropriate places. Then you have complete control of them. You should not be adding additional themes to the system's collection except by installing packages with pacman.
Please learn about the way that the file structure, permissions and access controls are supposed to work and the protection that they offer you. (From yourself as well as other people.)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I second cfr's comments. But I would like to add to that, that typically the configurations that con be done within /etc can also be done on a per user basis. So these types of things can be in the root your home folder as a dot file, or sometimes in $XDG_CONFIG_HOME, which is ~/.config.
To reiterate what cfr was saying: Please learn about the security your are trying to blatantly disregard, and why it is set up this way. *nix is touted as super secure, but this is because of the amazing permissions system that is in place. You're gonna break sh*t!
That said, there are some people around here who run as root all the time, but this too is highly ill advised. But if you just end up making the group of all your files "users", I think this may be along those same lines. When things break, your altered filesystem will likely mean that help will be a lot harder to come by.
Offline
With no offence to anyone..
I usually see this type of behavior with folks coming from the OS which starts with M and ends with $.
But this is what most people are grown accustomed to. They just always have more than enough permission to mess their system.
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline