Want admin to have every permission.

Good ideas? Share with us!
Post Reply
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Want admin to have every permission.

Post by 86ivar » 25 Apr 2013, 09:02

Hi.
I struggle to get rid of some files and folders, i cant delete them due to permissions. (I added the files with another user i had before i reinstalled bubba2)
I want admin to have all the permissions so I can delete them.

RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Want admin to have every permission.

Post by RandomUsername » 25 Apr 2013, 09:17

There are a few ways to do this but it is not recommended. The reason admin doesn't have those abilities is because it's used to access the web interface. If someone sniffed your admin password or somehow hacked your web interface they would have full access to your entire system.

...Question that just occurred to me: How are you trying to delete the files? Via the web interface or through SSH?

86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: Want admin to have every permission.

Post by 86ivar » 25 Apr 2013, 10:47

RandomUsername wrote:There are a few ways to do this but it is not recommended. The reason admin doesn't have those abilities is because it's used to access the web interface. If someone sniffed your admin password or somehow hacked your web interface they would have full access to your entire system.

...Question that just occurred to me: How are you trying to delete the files? Via the web interface or through SSH?
Tried deleting the folder in samba first, no permissions windows said. Then tried in the web interface, get the message: Failed to delete following files/folders. I can try SSH later today but im not an expert on that... think I should manage it anyway. I have had problems deleting files and folders before so I would like a easy way of doing it.

RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Want admin to have every permission.

Post by RandomUsername » 25 Apr 2013, 11:47

Well, the "proper" way of doing it is to log into SSH as a normal user then su to root.

86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: Want admin to have every permission.

Post by 86ivar » 25 Apr 2013, 17:22

Doing that all the time takes time...
Anyway now im trying to delete it in ssh but get the message "failed to remove, directory not empty."
I use the command rmdir
How can i brute force delete?

Edit: Fixed it! just had to find a better debian tutorial.

RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Want admin to have every permission.

Post by RandomUsername » 25 Apr 2013, 17:58

Well if you can't spare the extra five seconds it takes, you could look at setting up sudo which will temporarily give a normal account root priveliges, but like I say, I wouldn't recommend it.

Gordon
Posts: 1339
Joined: 10 Aug 2011, 03:18

Re: Want admin to have every permission.

Post by Gordon » 26 Apr 2013, 03:11

If you're a Windows guy you could always add another user and name that 'administrator'. By adding that user to the samba configuration as an 'admin user' you will effectively grant root rights to this user, but only through samba.

Post Reply