LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2020, 09:16 PM   #1
rehrnsberger
LQ Newbie
 
Registered: Aug 2020
Posts: 1

Rep: Reputation: Disabled
parent folder changed and need to change it back


I have had my system up and running on 20.04 for a while now. I have shared folders setup on it for my movies and tvshows. I use a windows pc with a vpn to download the videos and save them straight to linux share folders.

I noticed that in my server, I had some folders that showed an X on it stating I didnt own it. I ran

sudo chmod -777 -R /mnt/hdd1/movies
It said it couldnt access that folder. So I ran

sudo chmod -777 -R /mnt/hdd1 and lost access to the folder completely.

I looked it up and ran

sudo chown "user" /mnt/hdd1

Now I can open the folder but I get prompted to enter a password to view the folder.

My share folder is no longer working and the parent folder is now

admin:///mnt/hdd1 when it used to be /mnt/hdd1

Any thoughts?
 
Old 09-01-2020, 09:17 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
chmod -777 removes all permission bits.
Try chmod 777 without the dash.

Giving write permissions to everybody might be a bit risky. If that is not your goal, consider using 755 or so.

Last edited by berndbausch; 09-01-2020 at 09:24 PM.
 
  


Reply



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
Create 5 processes from a common parent and ensure that the parent terminates after c pro_learner Linux - Newbie 1 03-06-2013 09:25 AM
All of my folder icons changed to the Downloads folder icon? Supreme1012 Linux - Software 1 08-17-2010 04:45 PM
File descriptors shared between child and parent causing parent to hang. bharadiaam Linux - Newbie 1 03-02-2009 01:01 AM
changed driver to nvidia, can't login to X, need to change driver back to vesa how??? Fear58 Linux - Software 7 12-08-2004 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:04 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