LinuxQuestions.org
Visit Jeremy's Blog.
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 04-02-2012, 11:55 AM   #1
OasisTech
LQ Newbie
 
Registered: Dec 2010
Posts: 9

Rep: Reputation: 0
Angry Unable to modify permissions


I'm running a Ubuntu server version 11.10 and I've added a secondary hard drive recently.

Using Nautilus, I can create and edit files/folders but I'm unable to modify permissions. Currently, the drive is labeled "FC503CC8503C8C00" with the following permissions

drwxr-xr-x 6 root root 4096 2012-03-31 09:40 .
drwxr-xr-x 22 root root 4096 2012-03-27 08:09 ..
drwxr-xr-x 2 root root 4096 2012-01-20 22:50 cdrom
drwx------ 6 root root 4096 2012-03-22 15:25 FC503CC8503C8C00
drwx------ 1 user1 user1 4096 2012-03-30 17:46 FC503CC8503C8C00_
lrwxrwxrwx 1 root root 7 2012-01-20 22:47 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2012-01-20 22:47 floppy0

When I attempt to modify the permissions, I receive the following:

chmod 777 /FC503CC8503C8C00_
chmod: cannot access `/FC503CC8503C8C00_': No such file or directory

Altimately,I'm trying to share the folders to other machines within the network.

Any suggestions?

Thanks,
 
Old 04-02-2012, 12:14 PM   #2
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,961

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Where is FC503CC8503C8C00 mounted? Your ls -l makes it look like it's in the /mnt/ directory or similar, yet you're trying to chmod it like it's in /. Your chmod should look like
Code:
chmod 777 /mnt/FC503CC8503C8C00_
Assuming that's where it lives.

Last edited by suicidaleggroll; 04-02-2012 at 12:16 PM.
 
Old 04-02-2012, 12:18 PM   #3
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
Quote:
Originally Posted by suicidaleggroll View Post
Where is FC503CC8503C8C00 mounted? Your ls -l makes it look like it's in the /mnt/ directory or similar, yet you're trying to chmod it like it's in /. Your chmod should look like
Code:
chmod 777 /mnt/FC503CC8503C8C00_
Assuming that's where it lives.
Code:
ls -lrt -d -1 $PWD/{*,.*}
should give us the full paths that are needed for your issue.
 
Old 04-02-2012, 12:33 PM   #4
OasisTech
LQ Newbie
 
Registered: Dec 2010
Posts: 9

Original Poster
Rep: Reputation: 0
The drive is mounted at /media/FC503CC8503C8C00_. Here are the permissions before any adjustments.

User1@mserver:~$ ls -al /media
total 24
drwxr-xr-x 6 root root 4096 2012-03-31 09:40 .
drwxr-xr-x 22 root root 4096 2012-03-27 08:09 ..
drwxr-xr-x 2 root root 4096 2012-01-20 22:50 cdrom
drwx------ 6 root root 4096 2012-03-22 15:25 FC503CC8503C8C00
drwx------ 1 user1 user1 4096 2012-03-30 17:46 FC503CC8503C8C00_
lrwxrwxrwx 1 root root 7 2012-01-20 22:47 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2012-01-20 22:47 floppy0

After attempting to change command, here are the current permission:

user1@mserver:/media/FC503CC8503C8C00_$ chmod 777 /media/FC503CC8503C8C00_
user1@mserver:/media/FC503CC8503C8C00_$ ls -al /media
total 24
drwxr-xr-x 6 root root 4096 2012-03-31 09:40 .
drwxr-xr-x 22 root root 4096 2012-03-27 08:09 ..
drwxr-xr-x 2 root root 4096 2012-01-20 22:50 cdrom
drwx------ 6 root root 4096 2012-03-22 15:25 FC503CC8503C8C00
drwx------ 1 user1 user1 4096 2012-03-30 17:46 FC503CC8503C8C00_
lrwxrwxrwx 1 root root 7 2012-01-20 22:47 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2012-01-20 22:47 floppy0

No change applied!! Help! I just don't understand.

Thanks
 
Old 04-02-2012, 12:41 PM   #5
OasisTech
LQ Newbie
 
Registered: Dec 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Command issued:

user1@mserver:/media/FC503CC8503C8C00_$ ls -lrt -d -1 $PWD/{*,.*}

drwx------ 1 user1 user1 4096 2012-01-24 15:27 /media/FC503CC8503C8C00_/Media
-rw------- 1 user1 user1 671 2012-03-27 17:14 /media/FC503CC8503C8C00_/fstab.txt
drwx------ 1 user1 user1 0 2012-03-30 17:42 /media/FC503CC8503C8C00_/.Trash-1000
drwx------ 1 user1 user1 4096 2012-03-30 17:46 /media/FC503CC8503C8C00_/.
drwxr-xr-x 6 root root 4096 2012-03-31 09:40 /media/FC503CC8503C8C00_/..
 
Old 04-02-2012, 12:46 PM   #6
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
Quote:
Originally Posted by OasisTech View Post
Command issued:

user1@mserver:/media/FC503CC8503C8C00_$ ls -lrt -d -1 $PWD/{*,.*}

drwx------ 1 user1 user1 4096 2012-01-24 15:27 /media/FC503CC8503C8C00_/Media
-rw------- 1 user1 user1 671 2012-03-27 17:14 /media/FC503CC8503C8C00_/fstab.txt
drwx------ 1 user1 user1 0 2012-03-30 17:42 /media/FC503CC8503C8C00_/.Trash-1000
drwx------ 1 user1 user1 4096 2012-03-30 17:46 /media/FC503CC8503C8C00_/.
drwxr-xr-x 6 root root 4096 2012-03-31 09:40 /media/FC503CC8503C8C00_/..
So root owns FC503CC8503C8C00_ parent directory and the permissions on it only allow changing by the owner. To effect change on FC503CC8503C8C00_ and not just the files inside root will have work. Do you have sudo or su capabilities on that system? If no you can only change the files inside FC503CC8503C8C00_.
 
Old 04-02-2012, 12:53 PM   #7
OasisTech
LQ Newbie
 
Registered: Dec 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Sudo is available on this machine. Do I need to lgoin as Root to modify permission?

Thank you for your assistance.
 
Old 04-02-2012, 12:54 PM   #8
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,961

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
The permissions of the drive itself might also be fixed in the mount command.
 
Old 04-02-2012, 12:55 PM   #9
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
If user1 has sudo rights they should be able to do
Code:
sudo chmod 755 /media/FC503CC8503C8C00_
sorry cant bring myself to type those other two 7s.
 
  


Reply

Tags
permission, share


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
Modify Windows Permissions from Fedora Cambone Linux - Desktop 1 07-02-2010 01:42 AM
Using udev rules to modify floppy permissions Woodsman Slackware 3 08-22-2008 02:46 AM
Samba Homes - How to modify permissions albracco Linux - Software 3 02-24-2007 10:06 AM
help to modify the permissions for a partition locke_as16 Linux - General 3 04-22-2006 02:03 AM
Cannot modify permissions of Windows XP directories refp16 Linux - Networking 2 10-22-2005 11:14 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration