LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2010, 09:23 PM   #1
JCole123
LQ Newbie
 
Registered: May 2010
Posts: 28

Rep: Reputation: 15
How to grant permission and access to directories using ubuntu?


I'm having troubles with a download and I need permissions for the conig files and to have write-access to your ~/.loki/ directory and all sub directories. Does anyone know how to do this?
 
Old 07-14-2010, 09:44 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
What is it that you downloaded? If you give us the name of the app we might be able to give you a more precise answer.
 
Old 07-14-2010, 09:44 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Arrow

Quote:
Originally Posted by JCole123 View Post
I'm having troubles with a download and I need permissions for the conig files and to have write-access to your ~/.loki/ directory and all sub directories. Does anyone know how to do this?
Hi Cole,

Please remember, always mention your Linux Flavor (like SUSE, RHEL, CentOS, Ubuntu, etc) when creating a thread.

Generally, when you need to have permissions you can use this command.
Code:
chmod 777 -R /your/directory
can help you out. BUT, this is not safe.

I would recommend you to post outout of the below commands.

Code:
id
ls -ld $HOME
Also, do you have root access to your machine ?
 
Old 07-14-2010, 10:18 PM   #4
JCole123
LQ Newbie
 
Registered: May 2010
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vikas027 View Post
Hi Cole,

Please remember, always mention your Linux Flavor (like SUSE, RHEL, CentOS, Ubuntu, etc) when creating a thread.

Generally, when you need to have permissions you can use this command.
Code:
chmod 777 -R /your/directory
can help you out. BUT, this is not safe.

I would recommend you to post outout of the below commands.

Code:
id
ls -ld $HOME
Also, do you have root access to your machine ?
ok I did the second code but I dont know if it did anything. I don't think it did. How come the first code is dangerous?
 
Old 07-14-2010, 10:50 PM   #5
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by JCole123 View Post
How come the first code is dangerous?
When you issue 'chmod 777' you are giving read, write & execute to not only yourself and people in your group, but to everyone else too. Should you be compromised or have multiple users on your system, the attacker or other users have unfettered access to your files in that specified folder and files in any sub folders. They can do anything they want to (or with) your data. Adding -R (recursive) means those permissions will be applied to all data within the specified folder and sub folders.

id & ls -ld $home are two separate commands. The first will command will output something like this:

uid=500(username) gid=500(username) groups=500(username)

The second command will output something like this:

4 drwxr-xr-x 2 username username 4096 2010-06-24 01:42 Desktop/
4 drwxr-xr-x 8 username username 4096 2010-07-14 00:21 Documents/
4 drwxr-xr-x 11 username username 4096 2010-07-15 00:25 Download/

Last edited by {BBI}Nexus{BBI}; 07-14-2010 at 11:05 PM. Reason: Additional info added
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to grant permission to mount ntfs file system for normal user m.parthiban Fedora 3 02-21-2010 09:17 AM
how to grant users permission to install and run software? ringding Linux - Newbie 4 10-17-2007 03:13 PM
Grant Access Mercurius Slackware 18 12-10-2006 12:27 AM
How to grant users mount permission dreakon Linux - Newbie 4 06-13-2006 08:07 PM
Grant permission to run server - how? yrozijn Linux - Newbie 2 03-25-2005 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration